Class for communicating between EventHandler and the scripting. More...
Public Member Functions | |
template<typename T > | |
void | Result (const T &value) |
Set the result to be send back to the scripting. More... | |
template<typename T > | |
void | GetArgument (int argument, T &value) |
Read the nth argument into a C++ value. More... | |
virtual Binder * | ResultBegin ()=0 |
Start sending the result to the scripting. This setups the binder that the next value will be the result of the call. | |
virtual void | ResultEnd ()=0 |
Send the last bound value as result to the scripting. | |
virtual void | ResultVoid ()=0 |
Send a void result to the scripting. | |
virtual Binder * | GetArgument (int argument)=0 |
Setup the binder for reading the n-th argument. More... | |
virtual int | GetArgumentsCount () const =0 |
Get the number of arguments for the current call. More... | |
virtual bool | HasError () const =0 |
Get whether there has been an error during argument conversion. More... | |
Class for communicating between EventHandler and the scripting.
|
inline |
Read the nth argument into a C++ value.
argument | - the index of the argument, starting from 0 |
value | - the C++ variable to be filled with the argument value |
|
pure virtual |
Setup the binder for reading the n-th argument.
argument | - the index of the argument to be read, starting from 0 |
|
pure virtual |
Get the number of arguments for the current call.
|
pure virtual |
Get whether there has been an error during argument conversion.
|
inline |
Set the result to be send back to the scripting.
value | - the value to be send back to the scripting |