24 const string& description,
27 _value(defaultValue) {
42 return make_pair(0, 1);
59 errorMsg <<
"Option -"
61 <<
" was given the argument \""
63 <<
"\". The only valid arguments are \"on\" and \"off\".";
BoolParameter(const string &name, const string &description, bool defaultValue)
virtual void doProcessArguments(const char **args, size_t argCount)
virtual string doGetArgumentType() const
virtual pair< size_t, size_t > doGetArgumentCountRange() const
virtual string doGetValueAsString() const
A replacement for stringstream.
const string & getName() const
void reportError(const string &errorMsg)