X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fparser.hh;h=a237053482d837821a35a5a480b80ab8f65d78db;hb=41a38bbdaf245f12e58f2609092bfbcf8fba6f78;hp=148649bd174b445f442bc1b9f3950264cac4bcf2;hpb=6d40002093a5d8e665d4f310ea028d22e93e88cb;p=chaz%2Fopenbox diff --git a/util/epist/parser.hh b/util/epist/parser.hh index 148649bd..a2370534 100644 --- a/util/epist/parser.hh +++ b/util/epist/parser.hh @@ -1,7 +1,8 @@ -#include #include "actions.hh" #include "keytree.hh" +#include + class parser { public: parser(keytree *); @@ -12,9 +13,15 @@ public: void setKey(std::string key) { _key = key; } - void setArgument(std::string arg) + void setArgumentNum(std::string arg) { _arg = arg; } + void setArgumentNegNum(std::string arg) + { _arg = "-" + arg; } + + void setArgumentStr(std::string arg) + { _arg = arg.substr(1, arg.size() - 2); } + void setAction(std::string); void addModifier(std::string); void endAction();