62 errorMsg <<
"but no parameters were provided.\n";
65 errorMsg <<
"but one parameter was provided.";
70 errorMsg <<
"The provided parameters were: ";
71 const char* prefix =
"";
80 "(Did you forget to put a - in front of one of the options?)\n";
85 <<
" has the following description:\n "
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
A replacement for stringstream.
const string & getDescription() const
virtual void doProcessArguments(const char **args, size_t argCount)=0
virtual pair< size_t, size_t > doGetArgumentCountRange() const =0
void processArguments(const char **args, size_t argCount)
const string & getName() const
void appendToDescription(const char *str)
Parameter(const string &name, const string &description)
void checkCorrectParameterCount(unsigned int from, unsigned int to, const char **params, unsigned int paramCount)
void reportError(const string &errorMsg)