X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Fparser.hh;h=d106f16d669d9c0c52a241d202c353614cf3a166;hb=1e36acfd9198a7d8cbad4eef094e15a03eebc291;hp=1e70d6ee0deac158b79ea3b9983944afec722911;hpb=bd05f7ec58f3e1f5839c372ad4fb007a8d8866f5;p=chaz%2Fopenbox diff --git a/util/epist/parser.hh b/util/epist/parser.hh index 1e70d6ee..d106f16d 100644 --- a/util/epist/parser.hh +++ b/util/epist/parser.hh @@ -36,9 +36,6 @@ public: void parse(std::string); - void setKey(std::string key) - { _key = key; } - void setArgumentNum(std::string arg) { _arg = arg; } @@ -48,9 +45,16 @@ public: 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(); @@ -67,6 +71,7 @@ private: Action::ActionType _action; std::string _key; std::string _arg; + bool _add; }; #endif //__parser_hh