void parse(std::string);
- void setKey(std::string key)
- { _key = key; }
-
void setArgumentNum(std::string arg)
{ _arg = arg; }
void setArgumentStr(std::string arg)
{ _arg = arg.substr(1, arg.size() - 2); }
+ void setArgumentTrue(std::string)
+ { _arg = "true"; }
+
+ void setArgumentFalse(std::string)
+ { _arg = "false"; }
+
void setOption(std::string opt)
{ _config->addOption(opt, _arg); }
+ void setKey(std::string);
void setAction(std::string);
void addModifier(std::string);
void endAction();
Action::ActionType _action;
std::string _key;
std::string _arg;
+ bool _add;
};
#endif //__parser_hh