Change Util::Config to be able to return arrays on request.

This commit is contained in:
Thulinma 2012-08-28 11:01:59 +02:00
parent c6e2f6bdd3
commit 3ec56cf675
3 changed files with 31 additions and 20 deletions

View file

@ -22,7 +22,7 @@ namespace Util{
void addOption(std::string optname, JSON::Value option);
void printHelp(std::ostream & output);
void parseArgs(int argc, char ** argv);
JSON::Value & getOption(std::string optname);
JSON::Value & getOption(std::string optname, bool asArray = false);
std::string getString(std::string optname);
long long int getInteger(std::string optname);
bool getBool(std::string optname);