6#ifndef _ZFI_ZFIOCallback_fwd_h_
7#define _ZFI_ZFIOCallback_fwd_h_
41#define ZFCallbackTagKeyword_ioOwner "ZFCallbackTagKeyword_ioOwner"
#define ZFCALLBACK_DECLARE_BEGIN(ZFLIB_, CallbackTypeName, ParentType)
util macro to declare a child type of ZFCallback
Definition ZFCallback.h:488
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:188
_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
ZFSeekPos
seek position similar to SEEK_SET of FILE operation
Definition ZFCoreTypeDef_OtherType.h:47
zfindex ZFIOCallbackCalcSeek(zfindex offset, zfindex length, zfindex curPos, zfindex seekByteSize, ZFSeekPos seekPos)
util method for ZFIOCallback::ioSeek's implementations to calculate seek index
#define ZFCallbackTagKeyword_ioOwner
for advance user only
Definition ZFIOCallback_fwd.h:41
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
callback used by ZFFramework
Definition ZFCallback.h:98
void callbackTag(const zfstring &key, ZFObject *tag)
retain and store a autoreleased object attached to this callback, or set null to remove
abstract base class, use ZFOutput or ZFInput
Definition ZFIOCallback_fwd.h:64
zfbool ioClose(void) const
close the io callback
zfindex ioSize(void) const
calculate the callback's size or return zfindexMax() if not supported
zfany ioOwner(void) const
util to get ZFCallbackTagKeyword_ioOwner
Definition ZFIOCallback_fwd.h:102
zfbool ioSeek(zfindex byteSize, ZFSeekPos seekPos=ZFSeekPosBegin) const
similar to FILE's ZFFileSeek
zfindex ioTell(void) const
similar to FILE's ZFFileTell, return current's index or zfindexMax() if the callback doesn't support ...
void ioFlush(void) const
similar to FILE's ZFFileFlush
void ioOwner(ZFObject *ioOwner)
util to set ZFCallbackTagKeyword_ioOwner
Definition ZFIOCallback_fwd.h:96
base class of all objects
Definition ZFObjectCore.h:196
util method to cast ZFObject types freely
Definition zfany.h:35