6#ifndef _ZFI_ZFIOCallback_fwd_h_
7#define _ZFI_ZFIOCallback_fwd_h_
39#define ZFCallbackTagKeyword_ioOwner "ZFCallbackTagKeyword_ioOwner"
#define ZFCALLBACK_DECLARE_BEGIN(ZFLIB_, CallbackTypeName, ParentType)
util macro to declare a child type of ZFCallback
Definition ZFCallback.h:458
#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:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
_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 ZFIOCallbackCalcFSeek(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:39
#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:96
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:62
zfbool ioSeek(zfindex byteSize, ZFSeekPos pos=ZFSeekPosBegin) const
similar to FILE's ZFFileSeek
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:91
zfindex ioTell(void) const
similar to FILE's ZFFileTell, return current's index or zfindexMax() if the callback doesn't support ...
void ioOwner(ZFObject *ioOwner)
util to set ZFCallbackTagKeyword_ioOwner
Definition ZFIOCallback_fwd.h:85
base class of all objects
Definition ZFObjectCore.h:209
util method to cast ZFObject types freely
Definition zfany.h:35