Go to the documentation of this file.
49 name_(name), context_(NULL), interpreter_(NULL) {
58 name_(cmd.name()), context_(cmd.context()),
59 interpreter_(cmd.interpreter()) {
87 if (argumentCount < minimum) {
89 result->
setString(
"Not enough arguments.");
92 }
else if (argumentCount > maximum) {
115 result->
setString(
"Argument not integer as expected.");
135 bool argumentOk =
false;
145 result->
setString(
"Argument not positive integer as expected.");
181 result->
setString(
"Argument not positive integer as expected.");
200 result->
setString(
"Argument not double as expected.");
bool checkArgumentCount(int argumentCount, int minimum, int maximum)
virtual std::string stringValue() const
bool checkPositiveIntegerArgument(const DataObject &argument)
virtual double doubleValue() const
bool checkIntegerArgument(const DataObject &argument)
virtual int integerValue() const
CustomCommand(std::string name)
bool checkUnsignedIntegerArgument(const DataObject &argument)
ScriptInterpreter * interpreter() const
virtual void setResult(DataObject *result)
virtual void setString(std::string value)
bool checkDoubleArgument(const DataObject &argument)