ZFFramework
 
Loading...
Searching...
No Matches
ZFObjectHolder.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFObjectHolder_h_
7#define _ZFI_ZFObjectHolder_h_
8
9#include "ZFObject.h"
11
15zfclass ZFLIB_ZFCore ZFObjectHolder : zfextend ZFObject {
16 ZFOBJECT_DECLARE(ZFObjectHolder, ZFObject)
17
18
20
23
24protected:
26 virtual void objectOnInit(void) {
28 }
29
31 virtual inline void objectInfoImplAppend(ZF_IN_OUT zfstring &ret) {
33 if(this->value()) {
34 ret += " value=";
35 this->value()->objectInfoT(ret);
36 }
37 }
38};
39
41#endif // #ifndef _ZFI_ZFObjectHolder_h_
42
#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 ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#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_ON_INIT_DECLARE_1(ZFMP_0)
see ZFOBJECT_ON_INIT_INLINE_1
Definition ZFObjectDeclare.h:263
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFPROPERTY_RETAIN(Type, Name,...)
declare a retain property
Definition ZFPropertyDeclare.h:104
virtual void objectOnInit(ZFObject *v)
init with object
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
Definition ZFObjectHolder.h:31
virtual zfany const & value()
the value holded
Definition ZFObjectHolder.h:19
virtual void objectOnInit(void)
override this to init your object
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
Definition ZFObjectCore.h:331
util method to cast ZFObject types freely
Definition zfany.h:35