6#ifndef _ZFI_ZFFile_fwd_h_
7#define _ZFI_ZFFile_fwd_h_
61 return !this->operator == (ref);
71 return this->
impl().name;
77 return this->
impl().isDir;
137 _ZFP_ZFFileFindDataPrivate *d;
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfclassLikePOD
shows the class is not a POD type, but you may use it like a POD except memset it to 0
Definition ZFCoreTypeDef_ClassType.h:41
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define zfclassNotPOD
shows the class is not a POD type, you should not memset it or declare it in stack or copy value by c...
Definition ZFCoreTypeDef_ClassType.h:48
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
#define ZFOUTPUT_TYPE(T_Type, outputAction)
declare your custom type conversion to string, convenient for debug
Definition ZFCoreTypeDef_OtherType.h:221
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFENUM_REG_FLAGS(ZFLIB_, EnumName, EnumFlagsName,...)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:189
#define ZFENUM_SEPARATOR()
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:158
#define ZFENUM_VALUE_REGISTER(Value)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:168
#define ZFENUM_VALUE_WITH_INIT(Value, initValue)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:154
#define ZFENUM_BEGIN(ZFLIB_, EnumName)
macros to define reflectable enum type
Definition ZFEnumDeclare.h:147
#define ZFENUM_END_FLAGS(ZFLIB_, EnumName, EnumFlagsName)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:179
v_ZFFileOpenOption::ZFEnumType ZFFileOpenOption
see v_ZFFileOpenOption
Definition ZFFile_fwd.h:44
#define ZFSerializableKeyword_ZFFileCallback_localPath
keyword for serialize
Definition ZFFile_fwd.h:149
#define ZFSerializableKeyword_ZFFileCallback_flags
keyword for serialize
Definition ZFFile_fwd.h:147
#define ZFSerializableKeyword_ZFFileCallback_pathInfo
keyword for serialize
Definition ZFFile_fwd.h:145
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
ZFObject related include.
#define ZFTYPEID_ACCESS_ONLY_REG(ZFLIB_, TypeName, Type,...)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:205
#define ZFTYPEID_ACCESS_ONLY_DECLARE(ZFLIB_, TypeName, Type)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:195
for impl to achieve custom find logic
Definition ZFFile_fwd.h:92
zfstring name
file path
Definition ZFFile_fwd.h:94
zfbool isDir
whether directory
Definition ZFFile_fwd.h:95
void * nativeFd
for impl to store native find data
Definition ZFFile_fwd.h:96
data used by ZFFile when finding files
Definition ZFFile_fwd.h:53
void implTag(const zfstring &key, ZFObject *value) const
util for impl to store extra data
void implCopy(const ZFFileFindData &ref) const
copy the impl data
void implDetach(void)
close find
zfbool isDir(void) const
return true if is a directory
Definition ZFFile_fwd.h:76
void * implUserData(void) const
user data passed from implAttach
void objectInfoT(zfstring &ret) const
see objectInfo
zfstring objectInfo(void) const
return object info
Definition ZFFile_fwd.h:84
Impl & impl(void) const
the impl
void implAttach(const zfstring &implName, void *implUserData=zft_zfnull)
begin first find
zfany implTag(const zfstring &key) const
util for impl to store extra data
const zfstring & name(void) const
return file name of file
Definition ZFFile_fwd.h:70
void * implCheck(const zfstring &implName) const
check whether impl matches, assert fail if not match, return the implUserData
const zfstring & implName(void) const
name for the impl
see v_ZFFileOpenOption, ZFFileOpenOptionFlagsToString, ZFFileOpenOptionFlagsFromString
Definition ZFFile_fwd.h:44
base class of all objects
Definition ZFObjectCore.h:209
util method to cast ZFObject types freely
Definition zfany.h:35