ZFFramework
 
Loading...
Searching...
No Matches
ZFIOCallback_fwd.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFIOCallback_fwd_h_
7#define _ZFI_ZFIOCallback_fwd_h_
8
9#include "ZFCallback.h"
11
12// ============================================================
39#define ZFCallbackTagKeyword_ioOwner "ZFCallbackTagKeyword_ioOwner"
51 ZF_IN zfindex offset
52 , ZF_IN zfindex length
53 , ZF_IN zfindex curPos
54 , ZF_IN zfindex seekByteSize
55 , ZF_IN ZFSeekPos seekPos
56 );
57
58// ============================================================
63public:
70 ZF_IN zfindex byteSize
71 , ZF_IN_OPT ZFSeekPos pos = ZFSeekPosBegin
72 ) const;
76 zfindex ioTell(void) const;
80 zfindex ioSize(void) const;
81
88
91 zfany ioOwner(void) const {
93 }
94_ZFP_ZFCALLBACK_DECLARE_END_NO_ALIAS(ZFLIB_ZFCore, ZFIOCallback, ZFCallback)
95
97#endif // #ifndef _ZFI_ZFIOCallback_fwd_h_
98
header for ZFCallback
#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