projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8857fa2
)
Added functions for setting boolean parameters
author
Marius Nita
<marius@cs.pdx.edu>
Mon, 26 Aug 2002 06:40:21 +0000
(06:40 +0000)
committer
Marius Nita
<marius@cs.pdx.edu>
Mon, 26 Aug 2002 06:40:21 +0000
(06:40 +0000)
util/epist/parser.hh
patch
|
blob
|
history
diff --git
a/util/epist/parser.hh
b/util/epist/parser.hh
index 1e70d6ee0deac158b79ea3b9983944afec722911..c12fec9211ca48034d587a004ed397fddc91c641 100644
(file)
--- a/
util/epist/parser.hh
+++ b/
util/epist/parser.hh
@@
-48,6
+48,12
@@
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); }