ZFFramework
 
Loading...
Searching...
No Matches
ZFPropertyFwd.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFPropertyFwd_h_
7#define _ZFI_ZFPropertyFwd_h_
8
10#include "zfautoFwd.h"
12
16
17// ============================================================
28 ZF_IN const ZFProperty *property
29 , ZF_IN zfany const &ownerObj
30 );
33 ZF_IN const ZFProperty *property
35 );
36
37// ============================================================
49 ZF_IN const ZFProperty *property
50 , ZF_IN zfany const &ownerObj
51 , ZF_OUT_OPT zfauto *outInitValue /* = zfnull */
52 );
55 ZF_IN const ZFProperty *property
57 );
58
59// ============================================================
64 ZF_IN const ZFProperty *property
65 , ZF_IN zfany const &ownerObj
66 );
69 ZF_IN const ZFProperty *property
71 );
72
73// ============================================================
78 ZF_IN const ZFProperty *property
79 , ZF_IN_OUT void *v
80 );
87
88// ============================================================
89typedef void (*_ZFP_PropLifeCycleWrapper)(
90 ZF_IN ZFObject *propertyOwnerObject
91 , ZF_IN const ZFProperty *property
92 , ZF_IN void *propertyValue
93 , ZF_IN const void *propertyValueOld
94 , ZF_IN ZFObject *propertyLifeCycleUserData
95 );
96zfclassNotPOD ZFLIB_ZFCore _ZFP_PropLifeCycleData {
97public:
98 const ZFClass *ownerClass;
99 _ZFP_PropLifeCycleWrapper propertyLifeCycleWrapper;
100 zfauto propertyLifeCycleUserData;
101};
102
104#endif // #ifndef _ZFI_ZFPropertyFwd_h_
105
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define zfclassNotPOD
shows the class is not a POD type, you should not memset it or declare it in stack or copy value by c...
Definition ZFCoreTypeDef_ClassType.h:48
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
types for ZFFramework
zfauto(* ZFPropertyCallbackDynamicRegisterInitValueGetter)(const ZFProperty *property)
callback to setup init value for ZFPropertyDynamicRegister
Definition ZFPropertyFwd.h:86
void ZFPropertyCallbackIsInitValueChange(const ZFProperty *property, ZFPropertyCallbackIsInitValue callback)
change default impl for ZFPropertyCallbackIsInitValue, use with caution
zfbool(* ZFPropertyCallbackIsValueAccessed)(const ZFProperty *property, zfany const &ownerObj)
used to check whether the property has been accessed
Definition ZFPropertyFwd.h:27
void ZFPropertyCallbackValueResetChange(const ZFProperty *property, ZFPropertyCallbackValueReset callback)
change default impl for ZFPropertyCallbackValueReset, use with caution
void(* ZFPropertyCallbackValueReset)(const ZFProperty *property, zfany const &ownerObj)
used to reset the property to its init state
Definition ZFPropertyFwd.h:63
void ZFPropertyCallbackIsValueAccessedChange(const ZFProperty *property, ZFPropertyCallbackIsValueAccessed callback)
change default impl for ZFPropertyCallbackIsValueAccessed, use with caution
zfbool(* ZFPropertyCallbackIsInitValue)(const ZFProperty *property, zfany const &ownerObj, zfauto *outInitValue)
used to check whether the property is in init value state
Definition ZFPropertyFwd.h:48
void(* ZFPropertyCallbackUserRegisterInitValueSetup)(const ZFProperty *property, void *v)
for user registered property only, used to setup a property's init value
Definition ZFPropertyFwd.h:77
ZFObject's class info.
Definition ZFClass.h:67
base class of all objects
Definition ZFObjectCore.h:209
info for a property for ZFObject, see ZFPROPERTY_RETAIN for more info
Definition ZFProperty.h:28
ZFSerializable's data container, see ZFSerializable.
Definition ZFSerializableData.h:74
util method to cast ZFObject types freely
Definition zfany.h:35
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34
smart pointer for ZFObject