ZFFramework
 
Loading...
Searching...
No Matches
ZFAppRes.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFAppRes_h_
7#define _ZFI_ZFAppRes_h_
8
9#include "ZFAppUtilDef.h"
11
44zfclass ZFLIB_ZFAppUtil ZFAppRes : zfextend ZFObject {
45 ZFOBJECT_DECLARE(ZFAppRes, ZFObject)
46
47public:
52 , ZFMP_OUT(const ZFPathInfo &, resultPackage)
53 , ZFMP_IN(const ZFPathInfo &, sourceDir)
54 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
55 , ZFMP_IN_OPT(const zfstring &, relPathInPackage, zfnull)
56 )
57
58
63 , ZFMP_IN(const ZFPathInfo &, packagePathInfo)
64 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
65 )
66
67public:
75 , ZFMP_IN(const ZFListener &, packageGetter)
76 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
77 )
78
79public:
82 , ZFMP_IN(const ZFCoreArray<ZFPathInfo> &, packageSrc)
83 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
84 )
85
86public:
87 zfstring _ZFP_ZFAppRes_moduleName;
88};
89
91#endif // #ifndef _ZFI_ZFAppRes_h_
92
global header for ZFAppUtil module
#define ZFLIB_ZFAppUtil
used to export symbols
Definition ZFAppUtilDef.h:22
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#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
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_STATIC_4(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMethod
Definition ZFMethodDeclare.h:1416
#define ZFMETHOD_DECLARE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1025
#define ZFMETHOD_DECLARE_STATIC_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1042
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
static ZFPathInfo pathInfoForPackage(const ZFPathInfo &packagePathInfo, const zfstring &packagePwd=(zft_zfnull))
obtain a pathInfo points to root of "zfres" dir of the specified package built by build
virtual void notifyFinish(const ZFCoreArray< ZFPathInfo > &packageSrc, const zfstring &packagePwd=(zft_zfnull))
see ZFAppRes
static void start(const ZFListener &packageGetter, const zfstring &moduleName=(zft_zfnull))
start and attach this res moudle
static void build(const ZFPathInfo &resultPackage, const ZFPathInfo &sourceDir, const zfstring &packagePwd=(zft_zfnull), const zfstring &relPathInPackage=(zft_zfnull))
build package with sourceDir
light weight array
Definition ZFCoreArray.h:331
listener as ZFCallback, mostly used by ZFObject::observerNotify
Definition ZFObjectObserver.h:30
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:34