ZFFramework
 
Loading...
Searching...
No Matches
ZFMethodSerializable.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFMethodSerializable_h_
7#define _ZFI_ZFMethodSerializable_h_
8
9#include "ZFSerializable.h"
10#include "ZFTypeId.h"
12
35ZFOUTPUT_TYPE(ZFMethod, {v.objectInfoT(s);})
36
37/* ZFMETHOD_MAX_PARAM */
42 ZF_IN const zfstring &classOrNamespace
43 , ZF_IN const zfstring &methodName
44 , ZF_IN_OPT const zfchar *paramTypeId0 = zfnull
45 , ZF_IN_OPT const zfchar *paramTypeId1 = zfnull
46 , ZF_IN_OPT const zfchar *paramTypeId2 = zfnull
47 , ZF_IN_OPT const zfchar *paramTypeId3 = zfnull
48 , ZF_IN_OPT const zfchar *paramTypeId4 = zfnull
49 , ZF_IN_OPT const zfchar *paramTypeId5 = zfnull
50 , ZF_IN_OPT const zfchar *paramTypeId6 = zfnull
51 , ZF_IN_OPT const zfchar *paramTypeId7 = zfnull
52 );
59 ZF_IN const zfstring &methodSig
60 , ZF_IN const ZFCoreArray<ZFIndexRange> &methodSigPos);
61
79 , ZF_IN const zfstring &src
80 , ZF_IN_OPT zfindex srcLen = zfindexMax()
81 );
82
84#endif // #ifndef _ZFI_ZFMethodSerializable_h_
85
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#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
_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 zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
#define ZFOUTPUT_TYPE(T_Type, outputAction)
declare your custom type conversion to string, convenient for debug
Definition ZFCoreTypeDef_OtherType.h:221
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
const ZFMethod * ZFMethodFromSig(const zfstring &classOrNamespace, const zfstring &methodName, const zfchar *paramTypeId0=zft_zfnull, const zfchar *paramTypeId1=zft_zfnull, const zfchar *paramTypeId2=zft_zfnull, const zfchar *paramTypeId3=zft_zfnull, const zfchar *paramTypeId4=zft_zfnull, const zfchar *paramTypeId5=zft_zfnull, const zfchar *paramTypeId6=zft_zfnull, const zfchar *paramTypeId7=zft_zfnull)
parse method from method sig
zfbool ZFMethodSigSplit(ZFCoreArray< ZFIndexRange > &ret, const zfstring &src, zfindex srcLen=((zfindex) -1))
split method sig
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
serializable interface
reflectable type define
#define ZFTYPEID_DECLARE(ZFLIB_, TypeName, Type)
register a type for reflection
Definition ZFTypeIdDeclare.h:137
#define ZFTYPEID_REG(ZFLIB_, TypeName, Type,...)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:151
light weight array
Definition ZFCoreArray.h:331
reflectable method for ZFObject
Definition ZFMethod.h:252