ZFFramework
 
Loading...
Searching...
No Matches
ZFIOBuffer.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFIOBuffer_h_
7#define _ZFI_ZFIOBuffer_h_
8
9#include "ZFObject.h"
10
12
18
19zfclassFwd _ZFP_ZFIOBufferPrivate;
112
113// ============================================================
126 , ZFMP_IN(const ZFInput &, refInput)
127 , ZFMP_IN_OPT(const ZFListener &, convCallback, zfnull)
142 , ZFMP_IN(const ZFOutput &, refOutput)
143 , ZFMP_IN_OPT(const ZFListener &, convCallback, zfnull)
145
147#endif // #ifndef _ZFI_ZFIOBuffer_h_
148
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#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_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
#define ZFEXPORT_VAR_DECLARE(ZFLIB_, Type, Name)
util to export global variable
Definition ZFExport.h:68
ZFInput ZFIOBufferInput(const ZFInput &refInput, const ZFListener &convCallback=(zft_zfnull))
util to wrap input with io buffer
zfindex & ZFIOBufferSize(void)
default value for ZFIOBuffer::bufferSize, 256KB by default
Definition ZFIOBuffer.h:17
ZFOutput ZFIOBufferOutput(const ZFOutput &refOutput, const ZFListener &convCallback=(zft_zfnull))
util to wrap output with io buffer
#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_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1025
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#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 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 ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:248
virtual void objectOnInit(void)
override this to init your object
virtual ZFOutput output()
get output callback
virtual ZFPathInfo pathInfo()
get current path info
virtual zfindex & bufferSize()
change to use cacheFilePath when contents exceeds this size, ZFIOBufferSize by default
Definition ZFIOBuffer.h:51
virtual zfbool cacheFileAutoRemove()
see cacheFilePath
virtual ZFInput input()
get input callback
virtual void cacheFilePath(const ZFPathInfo &value, zfbool autoRemove=(_ZFT_t_zftrue))
change the cache file to use
virtual void removeAll()
remove all of contents
virtual void objectOnDealloc(void)
override this to destroy your object
general input callback
Definition ZFIOCallback_input.h:35
listener as ZFCallback, mostly used by ZFObject::observerNotify
Definition ZFObjectObserver.h:30
general output callback
Definition ZFIOCallback_output.h:37
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:34