Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
CSVParser.cpp
Go to the documentation of this file.
2#include <boost/any.hpp>
3
4#include <boost/algorithm/string.hpp>
7
8namespace storm {
9namespace parser {
10
11std::vector<std::string> parseCommaSeperatedValues(std::string const& input) {
12 std::vector<std::string> values;
13 std::vector<std::string> definitions;
14 boost::split(definitions, input, boost::is_any_of(","));
15 for (auto& definition : definitions) {
16 boost::trim(definition);
17 values.push_back(definition);
18 }
19 return values;
20}
21} // namespace parser
22} // namespace storm
std::vector< std::string > parseCommaSeperatedValues(std::string const &input)
Given a string seperated by commas, returns the values.
Definition CSVParser.cpp:11
LabParser.cpp.
Definition cli.cpp:18