CInterface

Engine/source/cinterface/cinterface.h

More...

Private Types

const char *(*
CallFunctionCallback )(const char *nameSpace, const char *name, const char **argv, int argc, bool *result)
void(*
CallMainCallback )()
const char *(*
CallMethodCallback )(const char *className, const char *classNamespace, U32 object, const char *name, const char **argv, int argc, bool *result)
bool(*
IsMethodCallback )(const char *className, const char *methodName)

Private Attributes

CallFunctionCallback
IsMethodCallback
CallMainCallback
CallMethodCallback

Private Functions

const char *
_CallFunction(const char * nameSpace, const char * name, const char ** argv, int argc, bool * result)
_CallMain(bool * res)
const char *
_CallMethod(const char * className, const char * classNamespace, U32 object, const char * name, const char ** argv, int argc, bool * res)
bool
_isMethod(const char * className, const char * methodName)

Public Static Functions

const char *
CallFunction(const char * nameSpace, const char * name, const char ** argv, int argc, bool * result)
CallMain(bool * res)
const char *
CallMethod(SimObject * obj, const char * name, const char ** argv, int argc, bool * res)
bool
isMethod(const char * className, const char * methodName)

Detailed Description

Private Types

typedef const char *(* CallFunctionCallback )(const char *nameSpace, const char *name, const char **argv, int argc, bool *result)
typedef void(* CallMainCallback )()
typedef const char *(* CallMethodCallback )(const char *className, const char *classNamespace, U32 object, const char *name, const char **argv, int argc, bool *result)
typedef bool(* IsMethodCallback )(const char *className, const char *methodName)

Private Attributes

CallFunctionCallback mFunctionCallback 
IsMethodCallback mIsMethodCallback 
CallMainCallback mMainCallback 
CallMethodCallback mMethodCallback 

Private Functions

_CallFunction(const char * nameSpace, const char * name, const char ** argv, int argc, bool * result)

_CallMain(bool * res)

_CallMethod(const char * className, const char * classNamespace, U32 object, const char * name, const char ** argv, int argc, bool * res)

_isMethod(const char * className, const char * methodName)

Public Functions

CInterface()

SetCallFunctionCallback(void * ptr)

SetCallIsMethodCallback(void * ptr)

SetCallMethodCallback(void * ptr)

SetMainCallback(void * ptr)

Public Static Functions

CallFunction(const char * nameSpace, const char * name, const char ** argv, int argc, bool * result)

CallMain(bool * res)

CallMethod(SimObject * obj, const char * name, const char ** argv, int argc, bool * res)

GetCInterface()

isMethod(const char * className, const char * methodName)