summaryrefslogtreecommitdiff
path: root/util/epist/parser.hh
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2002-08-08 03:10:54 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2002-08-08 03:10:54 +0000
commit97e86c912ee33e9e75e68f9c193d78879f91d542 (patch)
tree7238344d0c7ed0f52300e36b21f5c543129aeee9 /util/epist/parser.hh
parent90ee16fc8664f38683edf3b2eb4dd376a572f4ce (diff)
A few bug fixes and change the config to case insensitive and be more
tolerant of errors.
Diffstat (limited to 'util/epist/parser.hh')
-rw-r--r--util/epist/parser.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/epist/parser.hh b/util/epist/parser.hh
index a66e4141..a2370534 100644
--- a/util/epist/parser.hh
+++ b/util/epist/parser.hh
@@ -13,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();