#include <script.h>
Public Member Functions | |
| wxScriptFunction (const wxString &name=wxEmptyString, const wxString &ret=wxEmptyString, wxScriptTypeInfo *arr=NULL, int n=0) | |
| Creates & set the properties of the object. | |
| virtual | ~wxScriptFunction () |
| virtual void | DeepCopy (const wxScriptFunction *tocopy) |
| Deep copies the function. | |
| virtual wxScriptFunction * | Clone () const =0 |
| Returns a clone of this object. | |
| virtual bool | Match (const wxScriptTypeInfo *ret, int argc,...) |
| Checks if this function has the given return type, argument count and argument types. | |
| virtual bool | Exec (wxScriptVar &ret, wxScriptVar *arg) const =0 |
| Executes the function script. | |
| virtual void | Set (const wxString &name, const wxString &ret, wxScriptTypeInfo *arr, int n) |
| Sets the name, return type and arguments of this scripted function. | |
| wxString | GetName () const |
| Returns the name of this function. | |
| int | GetArgCount () const |
| Returns the number of arguments accepted by this function. | |
| wxScriptTypeInfo | GetRetType () const |
| Returns the type of the return value of this function. | |
| wxScriptTypeInfo | GetArgType (int n) const |
| Returns the type of the n-th argument required by this function. | |
Protected Member Functions | |
| wxString | GetCallString (wxScriptVar *arr) const |
| Returns the "call string"; that is, the string containing function name + wxT("(") + arg[n]->GetContentString() + ")". | |
Protected Attributes | |
| wxString | m_strName |
| The name of the function. | |
| wxScriptTypeInfo | m_tReturn |
| The return type of the function. | |
| wxScriptTypeInfo | m_pArgList [wxSCRIPTFNC_MAX_ARGS] |
| The argument type array. | |
| int | m_nArgCount |
| The number of entries of m_pArgList array. | |
|
||||||||||||||||||||
|
Creates & set the properties of the object.
|
|
|
|
|
|
Returns a clone of this object. The caller must delete the returned object when it's no longer useful. |
|
|
Deep copies the function.
|
|
||||||||||||
|
Executes the function script.
|
|
|
Returns the number of arguments accepted by this function.
|
|
|
Returns the type of the n-th argument required by this function.
|
|
|
Returns the "call string"; that is, the string containing function name + wxT("(") + arg[n]->GetContentString() + ")".
|
|
|
Returns the name of this function.
|
|
|
Returns the type of the return value of this function.
|
|
||||||||||||||||
|
Checks if this function has the given return type, argument count and argument types.
|
|
||||||||||||||||||||
|
Sets the name, return type and arguments of this scripted function.
|
|
|
The number of entries of m_pArgList array.
|
|
|
The argument type array.
|
|
|
The name of the function.
|
|
|
The return type of the function.
|
1.4.3