ZFFramework
 
Loading...
Searching...
No Matches
ZFResCache.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFResCache_h_
7#define _ZFI_ZFResCache_h_
8
9#include "ZFCache.h"
11
25
36 , ZFMP_IN(const zfchar *, resFilePath)
37 , ZFMP_IN_OPT(const ZFPathInfo &, pathInfo, zfnull)
38 )
45 , ZFMP_IN(const ZFInput &, input)
46 )
55 , ZFMP_IN(const ZFInput &, input)
56 , ZFMP_IN(const ZFListener &, loadImpl)
57 )
58
60#endif // #ifndef _ZFI_ZFResCache_h_
61
util object to hold ZFObject as cache
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
_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
#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_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#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
#define ZFOBJECT_SINGLETON_DECLARE(AccessTypeName, accessMethodName)
util macro to declare a singleton instance access for ZFObject type
Definition ZFObjectGlobalInstance.h:256
#define ZFPROPERTY_ON_INIT_DECLARE(Type, Name)
override life cycle callback for the property
Definition ZFPropertyDeclare.h:208
zfauto zfres(const zfchar *resFilePath, const ZFPathInfo &pathInfo=(zft_zfnull))
load resource by ZFObjectIOLoad
#define ZFLIB_ZFUtility
used to export symbols
Definition ZFUtilityDef.h:15
virtual zfindex & cacheMaxSize()
max cache size, 10 by default
Definition ZFCache.h:42
general input callback
Definition ZFIOCallback_input.h:37
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:35
static ZFResCache * instance()
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34