24 const string& description,
25 unsigned int defaultValue):
27 _value(defaultValue) {
41 return make_pair(1, 1);
55 if (!ok || !integer.fits_uint_p()) {
57 errorMsg <<
"Option -"
59 <<
" was given the parameter \""
61 <<
"\", which is not an integer in the range [0, 2^31-1].";
A replacement for stringstream.
static void parseInteger(mpz_class &integer, const string &str)
Throws NotAnIntegerException if str is not the string representation of an integer.
IntegerParameter(const string &name, const string &description, unsigned int defaultValue)
unsigned int getValue() const
virtual void doProcessArguments(const char **args, size_t argCount)
virtual string doGetValueAsString() const
virtual pair< size_t, size_t > doGetArgumentCountRange() const
virtual string doGetArgumentType() const
const string & getName() const
void reportError(const string &errorMsg)