41 #ifndef BPP_TEXT_KEYVALTOOLS_H
42 #define BPP_TEXT_KEYVALTOOLS_H
45 #include "../Exceptions.h"
92 static void singleKeyval(
const std::string& desc, std::string& key, std::string& val,
const std::string&
split =
"=");
104 static void multipleKeyvals(
const std::string& desc, std::map<std::string, std::string>& keyvals,
const std::string&
split =
",",
bool nested =
true);
123 static std::string
changeKeyvals(
const std::string& desc,
const std::map<std::string, std::string>& newkeyvals,
const std::string&
split =
",",
bool nested =
true);
133 static void parseProcedure(
const std::string& desc, std::string& name, std::map<std::string, std::string>& args);
Exception base class. Overload exception constructor (to control the exceptions mechanism)....
Exception thrown by the Keyval parser.
KeyvalException(const std::string &text)
std::vector< std::string > split(const std::string &s, std::size_t n)