ZFFramework
 
Loading...
Searching...
No Matches
ZFProgressable.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProgressable_h_
7#define _ZFI_ZFProgressable_h_
8
9#include "ZFObjectCore.h"
11
12// ============================================================
13// ZFProgressable
17zfinterface ZFLIB_ZFCore ZFProgressable : zfextend ZFInterface {
18 ZFINTERFACE_DECLARE(ZFProgressable, ZFInterface)
19
20public:
23 ZF_IN ZFProgressable *from
24 , ZF_IN ZFProgressable *to
25 , ZF_IN zffloat progress
26 );
27
28protected:
30 virtual inline zfbool progressOnUpdate(
31 ZF_IN ZFProgressable *from
32 , ZF_IN ZFProgressable *to
33 , ZF_IN zffloat progress
34 ) {
35 return zffalse;
36 }
37};
38
40#endif // #ifndef _ZFI_ZFProgressable_h_
41
#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 ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
base class of all objects
#define zfinterface
shows the type is an interface, see ZFInterface
Definition ZFObjectInterface.h:20
#define ZFINTERFACE_DECLARE(InterfaceName, ParentInterface,...)
see ZFInterface
Definition ZFObjectInterface.h:100
virtual zfbool progressUpdate(ZFProgressable *from, ZFProgressable *to, zffloat progress)
see ZFProgressable
virtual zfbool progressOnUpdate(ZFProgressable *from, ZFProgressable *to, zffloat progress)
see ZFProgressable
Definition ZFProgressable.h:30