6#ifndef _ZFI_ZFMethodDynamicRegister_h_
7#define _ZFI_ZFMethodDynamicRegister_h_
87zfclassFwd _ZFP_ZFMethodDynamicRegisterParamPrivate;
153 ,
ZF_IN_OPT const ZFListener ¶mDefaultValueCallback = _ZFP_ZFMethod_paramDefaultValueCallbackDummy()
191 _ZFP_ZFMethodDynamicRegisterParamPrivate *d;
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfclassLikePOD
shows the class is not a POD type, but you may use it like a POD except memset it to 0
Definition ZFCoreTypeDef_ClassType.h:41
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
reflectable method definination for ZFFramework
ZFMethodType
the method type
Definition ZFMethod.h:43
@ ZFMethodTypeVirtual
virtual method
Definition ZFMethod.h:46
ZFMethodAccessType
access type for ZFMethod
Definition ZFMethod.h:17
@ ZFMethodAccessTypePublic
public
Definition ZFMethod.h:18
const ZFMethod * ZFMethodDynamicRegister(const ZFMethodDynamicRegisterParam ¶m, zfstring *errorHint=zft_zfnull)
dynamic register a method, return null if fail
void ZFMethodDynamicUnregister(const ZFMethod *method)
see ZFMethodDynamicRegister
void(* ZFMethodGenericInvoker)(const ZFArgs &zfargs)
generic invoker for advanced reflection, see ZFMethod::methodGenericInvoker
Definition ZFMethodGenericInvoker.h:24
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
ZFObject's class info.
Definition ZFClass.h:67
listener as ZFCallback, mostly used by ZFObject::observerNotify
Definition ZFObjectObserver.h:30
util for ZFDynamic::method
Definition ZFMethodDynamicRegister.h:197
zfstring methodParamListInfo(void) const
return method param info, like: P0 p0, P1 p1=def1
Definition ZFMethodDynamicRegister.h:232
ZFMP & mp(const zfstring ¶mTypeId, const zfstring ¶mName, ZFObject *paramDefaultValue)
util for ZFDynamic::method
ZFMP & mpWithInit(const zfstring ¶mTypeId, const zfstring ¶mName, const ZFListener ¶mDefaultValueCallback)
util for ZFDynamic::method
const ZFListener & paramDefaultValueCallbackAt(zfindex index) const
util for ZFDynamic::method
const zfstring & paramTypeIdAt(zfindex index) const
util for ZFDynamic::method
ZFMP & mp(const zfstring ¶mTypeId, const zfstring ¶mName=zft_zfnull)
util for ZFDynamic::method
void methodParamListInfoT(zfstring &ret) const
see methodParamListInfo
void objectInfoT(zfstring &ret) const
see objectInfo
zfindex paramCount(void) const
util for ZFDynamic::method
const zfstring & paramNameAt(zfindex index) const
util for ZFDynamic::method
zfstring objectInfo(void) const
return object info
Definition ZFMethodDynamicRegister.h:242
param for ZFMethodDynamicRegister
Definition ZFMethodDynamicRegister.h:102
ZFMethodDynamicRegisterParam & methodAccessType(ZFMethodAccessType methodAccessType)
see ZFMethodDynamicRegister
const ZFListener & paramDefaultValueCallbackAt(zfindex index) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & methodType(ZFMethodType methodType)
see ZFMethodDynamicRegister
const zfstring & paramNameAt(zfindex index) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & methodParam(const zfstring ¶mTypeId, const zfstring ¶mName=zft_zfnull, const ZFListener ¶mDefaultValueCallback=_ZFP_ZFMethod_paramDefaultValueCallbackDummy())
see ZFMethodDynamicRegister
const ZFListener & methodImpl(void) const
see ZFMethodDynamicRegister
zfany dynamicRegisterUserData(void) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & zfunsafe_disableChecker(zfbool disableChecker)
see ZFMethodDynamicRegister
void objectInfoT(zfstring &ret) const
see objectInfo
ZFMethodDynamicRegisterParam & methodGenericInvoker(ZFMethodGenericInvoker methodGenericInvoker)
see ZFMethodDynamicRegister, ZFMethodGenericInvokerParamsCheck
zfstring objectInfo(void) const
return object info
Definition ZFMethodDynamicRegister.h:174
ZFMethodDynamicRegisterParam & methodImpl(const ZFListener &methodImpl)
see ZFMethodDynamicRegister
const zfstring & methodNamespace(void) const
see ZFMethodDynamicRegister
ZFMethodAccessType methodAccessType(void) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & dynamicRegisterUserData(ZFObject *dynamicRegisterUserData)
see ZFMethodDynamicRegister
zfindex paramCount(void) const
see ZFMethodDynamicRegister
zfbool zfunsafe_disableChecker(void) const
see ZFMethodDynamicRegister
ZFMethodType methodType(void) const
see ZFMethodDynamicRegister
const zfstring & paramTypeIdAt(zfindex index) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & returnTypeId(const zfstring &returnTypeId)
see ZFMethodDynamicRegister
const ZFClass * ownerClass(void) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & ownerClass(const ZFClass *ownerClass)
see ZFMethodDynamicRegister
const zfstring & returnTypeId(void) const
see ZFMethodDynamicRegister
const zfstring & methodName(void) const
see ZFMethodDynamicRegister
ZFMethodGenericInvoker methodGenericInvoker(void) const
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & methodNamespace(const zfstring &methodNamespace)
see ZFMethodDynamicRegister
ZFMethodDynamicRegisterParam & methodName(const zfstring &methodName)
see ZFMethodDynamicRegister
reflectable method for ZFObject
Definition ZFMethod.h:252
base class of all objects
Definition ZFObjectCore.h:209
util method to cast ZFObject types freely
Definition zfany.h:35