Change Util::Config to be able to return arrays on request.
This commit is contained in:
parent
c6e2f6bdd3
commit
3ec56cf675
3 changed files with 31 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue