ZFFramework
 
Loading...
Searching...
No Matches
ZFFile_path.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFFile_path_h_
7#define _ZFI_ZFFile_path_h_
8
9#include "ZFFile_fwd.h"
11
12// ============================================================
13// cwd
26 , ZFMP_IN(const zfstring &, path)
27 )
33
34// ============================================================
35// module
51
52// ============================================================
53// setting
62ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForSettingOnUpdate)
64
76 , ZFMP_IN(const zfstring &, path)
77 )
78
79// ============================================================
80// storage
89ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForStorageOnUpdate)
91
103 , ZFMP_IN(const zfstring &, path)
105
106// ============================================================
107// storage shared
116ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForStorageSharedOnUpdate)
118
134 , ZFMP_IN(const zfstring &, path)
136
137// ============================================================
138// cache
147ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheOnUpdate)
153ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheBeforeClear)
159ZFEVENT_GLOBAL(ZFLIB_ZFCore, ZFPathForCacheAfterClear)
161
175 , ZFMP_IN(const zfstring &, path)
181
183#endif // #ifndef _ZFI_ZFFile_path_h_
184
#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
file utility
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