ZFFramework
 
Loading...
Searching...
No Matches
ZFIODef_path.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFIODef_path_h_
7#define _ZFI_ZFIODef_path_h_
8
9#include "ZFIODef_fwd.h"
10
12
13// ============================================================
14// cwd
27 , ZFMP_IN(const zfstring &, path)
28 )
34
35// ============================================================
36// module
52
53// ============================================================
54// setting
63ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForSettingOnUpdate)
65
77 , ZFMP_IN(const zfstring &, path)
78 )
79
80// ============================================================
81// storage
90ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForStorageOnUpdate)
92
104 , ZFMP_IN(const zfstring &, path)
106
107// ============================================================
108// storage shared
117ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForStorageSharedOnUpdate)
119
135 , ZFMP_IN(const zfstring &, path)
137
138// ============================================================
139// cache
148ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheOnUpdate)
154ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheBeforeClear)
160ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheAfterClear)
162
176 , ZFMP_IN(const zfstring &, path)
182
184#endif // #ifndef _ZFI_ZFIODef_path_h_
185
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
abstract IO
const zfstring & ZFPathForStorage()
get a proper storage path that app can write files to
const zfstring & ZFPathForModuleFile()
get module's path, e.g. "/path/module.exe"
const zfstring & ZFPathForStorageShared()
get a proper shared storage path that app can write files to, and other app can access
const zfstring & ZFPathForSetting()
get a proper data path that app can save settings to
const zfstring & ZFPathForCache()
get a proper cache path that app can write files to
zfstring ZFPathForCwd()
get current working directory
zfstring ZFPathForCwdOrModule()
util method to access ZFPathForCwd, return ZFPathForModule if not available
const zfstring & ZFPathForModule()
get module's parent's path, e.g. "/path"
void ZFPathForCacheClear()
clear all caches under ZFPathForCache
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#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_END(NameSpace)
end namespace
Definition ZFNamespace.h:60
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZF_NAMESPACE_BEGIN(NameSpace)
begin namespace
Definition ZFNamespace.h:40
#define ZFEVENT_GLOBAL(ZFLIB_, YourEvent)
declare a observer event in global scope, see ZFEVENT
Definition ZFObjectObserver.h:369
Definition ZFApp.h:13