Go to the documentation of this file.
35 #ifndef TTA_CUSTOM_COMMAND_HH
36 #define TTA_CUSTOM_COMMAND_HH
61 std::string
name()
const;
69 virtual bool execute(
const std::vector<DataObject>& arguments) = 0;
70 virtual std::string
helpText()
const = 0;
void setContext(InterpreterContext *context)
bool checkArgumentCount(int argumentCount, int minimum, int maximum)
void setInterpreter(ScriptInterpreter *si)
bool checkPositiveIntegerArgument(const DataObject &argument)
InterpreterContext * context() const
std::string name_
The name of the command.
virtual bool execute(const std::vector< DataObject > &arguments)=0
bool checkIntegerArgument(const DataObject &argument)
CustomCommand(std::string name)
bool checkUnsignedIntegerArgument(const DataObject &argument)
ScriptInterpreter * interpreter() const
CustomCommand & operator=(const CustomCommand &)
Assignment not allowed.
bool checkDoubleArgument(const DataObject &argument)
ScriptInterpreter * interpreter_
Interpreter for the command.
InterpreterContext * context_
Context of the command.
virtual std::string helpText() const =0