ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFLua.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFLua_h_
7#define _ZFI_ZFProtocolZFLua_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFLua/ZFLuaDef.h"
12
19public:
21 virtual void *luaStateOpen(void) zfpurevirtual;
23 virtual void luaStateClose(ZF_IN void *L) zfpurevirtual;
24
26 virtual void luaStateAttach(ZF_IN void *L) zfpurevirtual;
28 virtual void luaStateDetach(ZF_IN void *L) zfpurevirtual;
29
31 virtual void classDataUpdate(
32 ZF_IN void *L
33 , ZF_IN const ZFClassDataUpdateData &data
35
41 ZF_IN void *L
42 , ZF_IN const ZFPathInfo &pathInfoOrNull
43 , ZF_IN const ZFInput &input
44 , ZF_OUT_OPT zfauto *luaResult = zfnull
45 , ZF_IN_OPT const ZFCoreArray<zfauto> *luaParams = zfnull
46 , ZF_OUT_OPT zfstring *errorHint = zfnull
48
50 virtual void luaGC(ZF_IN void *L) zfpurevirtual;
52
54#endif // #ifndef _ZFI_ZFProtocolZFLua_h_
55
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#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
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#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
global header for ZFLua module
#define ZFLIB_ZFLua
used to export symbols
Definition ZFLuaDef.h:14
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
data holder for ZFGlobalEvent::E_ClassDataUpdate
Definition ZFObjectClassTypeFwd.h:143
light weight array
Definition ZFCoreArray.h:331
general input callback
Definition ZFIOCallback_input.h:37
virtual void * luaStateOpen(void)=0
see ZFLuaStateOpen, ensured called in proper thread with proper mutex
virtual void luaStateDetach(void *L)=0
see ZFLuaStateDetach, ensured called in proper thread with proper mutex
virtual zfbool luaExecute(void *L, const ZFPathInfo &pathInfoOrNull, const ZFInput &input, zfauto *luaResult=zft_zfnull, const ZFCoreArray< zfauto > *luaParams=zft_zfnull, zfstring *errorHint=zft_zfnull)=0
see ZFLuaExecute, ensured called in proper thread with proper mutex, impl must supply all methods men...
virtual void luaStateAttach(void *L)=0
see ZFLuaStateAttach, ensured called in proper thread with proper mutex
virtual void luaStateClose(void *L)=0
see ZFLuaStateClose, ensured called in proper thread with proper mutex
virtual void luaGC(void *L)=0
see ZFLuaGC, ensured called in proper thread with proper mutex
virtual void classDataUpdate(void *L, const ZFClassDataUpdateData &data)=0
called when class or method changed, ensured called in proper thread with proper mutex
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:35
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34