5 #ifndef BPP_TEXT_KEYVALTOOLS_H 6 #define BPP_TEXT_KEYVALTOOLS_H 9 #include "../Exceptions.h" 56 static void singleKeyval(
const std::string& desc, std::string& key, std::string& val,
const std::string&
split =
"=");
68 static void multipleKeyvals(
const std::string& desc, std::map<std::string, std::string>& keyvals,
const std::string&
split =
",",
bool nested =
true);
87 static std::string changeKeyvals(
const std::string& desc,
const std::map<std::string, std::string>& newkeyvals,
const std::string&
split =
",",
bool nested =
true);
97 static void parseProcedure(
const std::string& desc, std::string& name, std::map<std::string, std::string>& args);
100 #endif // BPP_TEXT_KEYVALTOOLS_H
Exception thrown by the Keyval parser.
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception)
KeyvalException(const std::string &text)
std::vector< std::string > split(const std::string &s, std::size_t n)