149 _ZFP_ZFStatePrivate *d;
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#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_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#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_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_STATIC_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:708
#define ZFMETHOD_DECLARE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1025
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1206
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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:242
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:316
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:127
#define ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:247
global header for ZFUtility module
#define ZFLIB_ZFUtility
used to export symbols
Definition ZFUtilityDef.h:15
light weight array
Definition ZFCoreArray.h:348
container of ZFObject, see ZFKeyValueContainer
Definition ZFHashMap.h:17
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
static ZFPathInfo stateFileDefault()
default stateFile, always ZFPathInfo(ZFPathType_settingPath, 'ZFState')
virtual void getAllT(ZFCoreArray< zfstring > &keys, ZFCoreArray< zfstring > &values)
return a copy of all state, for debug use only
virtual zfbool ready()
whether internal state has been loaded
virtual void update(const zfstring &key, zftimet expire=(0))
update cache time if exist
static ZFState * instance()
virtual ZFPathInfo stateFileFixed()
util to returon stateFile or default setting if not specified
virtual void set(const zfstring &key, const zfstring &value, zftimet expire=(0))
set state
virtual void saveImmediately()
try to save immediately, use only if necessary
virtual void objectOnDealloc(void)
override this to destroy your object
virtual zfautoT< ZFHashMap > getAll()
return a copy of all state, for debug use only
virtual void removeAll()
remove all state
virtual zfstring get(const zfstring &key)
get state or null if not ready
virtual zfautoT< ZFTaskId > load(const ZFListener &callback)
load and add callback to queue which would called if ready
virtual void remove(const zfstring &key)
remove state
virtual zfautoT< ZFTaskId > getAsync(const zfstring &key, const ZFListener &callback)
util to get with load
virtual void objectOnInit(void)
override this to init your object
virtual ZFPathInfo & stateFile()
path to store state file
Definition ZFState.h:50
virtual zfautoT< ZFTaskId > save(const ZFListener &callback)
save and call callback when save complete
abstract task id
Definition ZFTaskId.h:16
type restrict version of zfauto
Definition zfautoFwd.h:108