27 boost::property_tree::ptree pt;
28 boost::tokenizer<boost::char_separator<char> > tok(str,
args_sep);
33 boost::tokenizer<boost::char_separator<char> > fields(s,
fields_sep);
34 typedef boost::tokenizer<boost::char_separator<char> >::iterator Iter;
36 Iter it = fields.begin();
42 if (it != fields.end()) {
49 throw std::runtime_error(
"Parsing error: malformed input buffer.");
52 if (it != fields.end()) {
53 throw std::runtime_error(
"Parsing error: malformed input buffer.");
static const boost::char_separator< char > fields_sep("=")
std::string trim(const std::string &buffer)
Trim string.
static const boost::char_separator< char > args_sep(";")