Definition at line 257 of file cmd.cc.
Public Member Functions | |
InputCmd (const Token &t, Value::VType type, bool pushValue) | |
virtual void | toStream (std::ostream &str) const |
dump command to stream in human-readable format | |
virtual bool | exec (FncDefinition *fnc) |
execute command in the context of calling function | |
Private Attributes | |
Token | t_ |
Value::VType | type_ |
bool | pushValue_ |
InputCmd | ( | const Token & | t, | |
Value::VType | type, | |||
bool | pushValue | |||
) | [inline] |
virtual void toStream | ( | std::ostream & | ) | const [inline, virtual] |
dump command to stream in human-readable format
Implements ICmd.
Definition at line 263 of file cmd.cc.
References StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, t_, and type_.
bool exec | ( | FncDefinition * | ) | [virtual] |
execute command in the context of calling function
Implements ICmd.
Definition at line 802 of file cmd.cc.
References ValueFactory::create(), StreamDecorator::E_ERROR, Vm::fileName, ValueStack::push(), pushValue_, t_, type_, Value::V_DOUBLE, Value::V_INT, Value::V_STRING, FncDefinition::vm, and Vm::vmStack.
Value::VType type_ [private] |
bool pushValue_ [private] |