Structure for defining SML functions. More...
#include <sml/function.h>

Public Member Functions | |
| FUNCDEF (const char *p_name, STYPE p_type, PARM *p_parms, const char *p_classname, int p_createdate, int p_modifydate=0, const char *p_description=0, bool bInWin32Native=false) | |
| FUNCDEF (const char *p_name, SMLFUNCSIG p_signature, PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_ClassName=0) | |
| FUNCDEF (const char *p_name, METHODPTR p_method, SMLFUNCSIG p_signature, PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_ClassName=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, VOIDFUNC p_func, SMLFUNCSIG p_signature, PARM *p_parms, const char *p_ClassName=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, VOIDFUNC p_func, SMLFUNCSIG p_signature, PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_ClassName=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, void *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), STYPE p_type, PARM *p_parms, const char *p_classname, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, void *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), STYPE p_type, PARM *p_parms, const char *p_classname, int p_createdate, int p_modifydate=0, const char *p_description=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, CLASSHASH *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), STYPE p_type, PARM *p_parms, const char *p_classname, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, CLASSHASH *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), STYPE p_type, PARM *p_parms, const char *p_classname, int p_createdate, int p_modifydate=0, const char *p_description=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, STRING *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, STRING *(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_description=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, double(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, double(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_description=0, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, void(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, bool p_bInWin32=true) | |
| FUNCDEF (const char *p_name, void(*p_func)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context), PARM *p_parms, int p_createdate, int p_modifydate=0, const char *p_description=0, bool p_bInWin32=true) | |
Structure for defining SML functions.
Constructors in this class fill in the SMLFUNC members for you
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| void(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SMLFUNCDEF for a void function.
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| void(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a void function.
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| double(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning double.
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| double(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning double.
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| STRING *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning an SML::STRING, The string returned should be allocated by SML::CONTEXT::StringAlloc().
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| STRING *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| PARM * | p_parms, | |||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning an SML::STRING.
The string returned should be allocated by SML::CONTEXT::StringAlloc()
| p_name | Function name | |
| p_func | Actual function | |
| p_parms | Parameter list (null if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| CLASSHASH *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| STYPE | p_type, | |||
| PARM * | p_parms, | |||
| const char * | p_classname, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning an SML::CLASSHASH.
| p_name | Function name | |
| p_func | Actual function | |
| p_type | STYPE_ClassHashFunc or STYPE_NumHashFunc | |
| p_parms | Parameter list (null if none needed) | |
| p_classname | Name of class held in hash (NULL if STYPE_NumHashFunc) | |
| p_bInWin32 | Pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| CLASSHASH *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| STYPE | p_type, | |||
| PARM * | p_parms, | |||
| const char * | p_classname, | |||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning an SML::CLASSHASH.
| p_name | Function name | |
| p_func | Actual function | |
| p_type | STYPE_ClassHashFunc or STYPE_NumHashFunc | |
| p_parms | Parameter list (null if none needed) | |
| p_classname | Name of class held in hash (NULL if STYPE_NumHashFunc) | |
| p_bInWin32 | Pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| void *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| STYPE | p_type, | |||
| PARM * | p_parms, | |||
| const char * | p_classname, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning a class.
| p_name | Function name | |
| p_func | Actual function | |
| p_type | STYPE_ClassCopyFunc if return value should be freed by SML when it's done with it. STYPE_ClassRefFunc if return value should not be freed. | |
| p_parms | Parameter list (null if none needed) | |
| p_classname | Name of class returned. Use SMLCLASSNAME macros from sml.h if possible (or define them if they're not there) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| void *(*)(int numargs, ARG *args, UINT8 *argtypes, CONTEXT *context) | p_func, | |||
| STYPE | p_type, | |||
| PARM * | p_parms, | |||
| const char * | p_classname, | |||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for a function returning a class.
| p_name | Function name | |
| p_func | Actual function | |
| p_type | STYPE_ClassCopyFunc if return value should be freed by SML when it's done with it. STYPE_ClassRefFunc if return value should not be freed. | |
| p_parms | Parameter list (null if none needed) | |
| p_classname | Name of class returned. Use SMLCLASSNAME macros from sml.h if possible (or define them if they're not there) | |
| p_bInWin32 | Pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| VOIDFUNC | p_func, | |||
| SMLFUNCSIG | p_signature, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_ClassName = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for an arbitrary C or C++ function See the documentation of SML::AUTOCLASS_NOALLOC_T::AddMethod for details.
| p_name | Function name | |
| p_func | Function to call. Actual function should match the signature specified by the p_signature parameter, but must be cast to (VOIDFUNC). SML Runtime will take care of the magic. | |
| p_signature | function signature (see SMLFUNCSIG) | |
| p_parms | Parameters (NULL if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| VOIDFUNC | p_func, | |||
| SMLFUNCSIG | p_signature, | |||
| PARM * | p_parms, | |||
| const char * | p_ClassName = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for an arbitrary C or C++ function See the documentation of SML::AUTOCLASS_NOALLOC_T::AddMethod for details.
| p_name | Function name | |
| p_func | Function to call. Actual function should match the signature specified by the p_signature parameter, but must be cast to (VOIDFUNC). SML Runtime will take care of the magic. | |
| p_signature | function signature (see SMLFUNCSIG) | |
| p_parms | Parameters (NULL if none needed) | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| METHODPTR | p_method, | |||
| SMLFUNCSIG | p_signature, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_ClassName = 0, |
|||
| bool | p_bInWin32 = true | |||
| ) | [inline] |
Construct an SML::FUNCDEF for an arbitrary C or C++ function See the documentation of SML::AUTOCLASS_NOALLOC_T::AddMethod for details.
| p_name | Function name | |
| p_bInWin32 | pass false if function not available in WIN32_NATIVE builds |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| SMLFUNCSIG | p_signature, | |||
| PARM * | p_parms, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_ClassName = 0 | |||
| ) | [inline] |
Use this one in an #ifdef for things which cannot be installed in the current compile environment (like WIN32_NATIVE).
| p_name | Function name |
| SML::FUNCDEF::FUNCDEF | ( | const char * | p_name, | |
| STYPE | p_type, | |||
| PARM * | p_parms, | |||
| const char * | p_classname, | |||
| int | p_createdate, | |||
| int | p_modifydate = 0, |
|||
| const char * | p_description = 0, |
|||
| bool | bInWin32Native = false | |||
| ) | [inline] |
Use this one in an #ifdef for things which cannot be installed in the current compile environment (like WIN32_NATIVE).
1.6.1