HQP
1.9.6
|
Interface method. More...
#include <If_Method.h>
Public Member Functions | |
If_Method (const char *ifName, void(ClassType::*method)(), ClassType *object) | |
constructor | |
If_Method (const char *ifName, int(ClassType::*method)(int argc, const char *argv[], const char **result), ClassType *object) | |
Deprecated constructor. More... | |
Public Member Functions inherited from If_Element | |
If_Element (const char *ifName) | |
constructor | |
virtual | ~If_Element () |
destructor | |
const char * | ifName () |
get interface name | |
Public Member Functions inherited from If_ListElement | |
If_ListElement () | |
constructor | |
virtual | ~If_ListElement () |
destructor | |
Protected Member Functions | |
int | invoke (Tcl_Interp *interp, int objc, Tcl_Obj *CONST[]) |
invoke callback method | |
Protected Member Functions inherited from If_Element | |
virtual int | invoke (Tcl_Interp *, int objc, Tcl_Obj *CONST objv[])=0 |
Interface for derived classes to process command invocation. | |
Protected Attributes | |
ClassType * | _object |
object the method belongs to | |
void(ClassType::* | _method )() |
method pointer | |
int(ClassType::* | _dep_method )(int, const char *[], const char **) |
deprecated pointer to a method taking argc/argv arguments | |
Interface method.
|
inline |
Deprecated constructor.
It temporarily provides backwards compatibility for methods using call arguments and returning a result. However, no values will be passed to the method, that is argc == 0, argv == NULL; result can be used as before. Please redefine methods to not having call arguments and to throw errors with m_error().
References If_Method< ClassType >::_dep_method, If_Method< ClassType >::_method, and If_Method< ClassType >::_object.