6#ifndef _ZFI_ZFPropertyUtil_h_
7#define _ZFI_ZFPropertyUtil_h_
22 return propertyInfo->callbackIsValueAccessed(propertyInfo, ownerObj);
34 return propertyInfo->callbackIsInitValue(propertyInfo, ownerObj,
zfnull);
45 propertyInfo->callbackIsInitValue(propertyInfo, ownerObj, &v);
58 propertyInfo->callbackValueReset(propertyInfo, ownerObj);
72 propertyInfo->getterMethod()->methodInvoke(obj0),
73 propertyInfo->getterMethod()->methodInvoke(obj1));
87 propertyInfo->getterMethod()->methodInvoke(obj0),
88 propertyInfo->getterMethod()->methodInvoke(obj1));
101 propertyInfo->setterMethod()->methodInvoke(dstObj, propertyInfo->getterMethod()->methodInvoke(srcObj));
#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
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_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
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
ZFCompareResult
compare result of two ZFObjects
Definition ZFCoreTypeDef_OtherType.h:28
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
ZFCompareResult ZFObjectCompareValue(ZFObject *const &e0, ZFObject *const &e1)
util method to ZFObject::objectCompareValue
Definition ZFObjectUtil.h:45
ZFCompareResult ZFObjectCompare(ZFObject *const &e0, ZFObject *const &e1)
util method to compare two ZFObject, return ZFCompareEqual if both null, return ZFCompareUncomparable...
Definition ZFObjectUtil.h:21
void ZFPropertyValueReset(const ZFProperty *propertyInfo, zfany const &ownerObj)
util for ZFPropertyCallbackValueReset
Definition ZFPropertyUtil.h:54
void ZFPropertyCopyAll(ZFObject *dstObj, ZFObject *srcObj)
copy all properties from srcObj to dstObj
ZFCompareResult ZFPropertyCompareValue(const ZFProperty *propertyInfo, ZFObject *obj0, ZFObject *obj1)
util to compare property value
Definition ZFPropertyUtil.h:81
void ZFObjectShortInfoT(zfstring &ret, ZFObject *obj, zfindex maxCount=((zfindex) -1))
print short info about the object, using ZFObjectPropertyInfoT
void ZFObjectPrettyInfoT(zfstring &ret, ZFObject *obj, zfindex maxCount=((zfindex) -1))
print pretty info about the object, using ZFObjectPropertyInfoT
zfbool ZFPropertyIsInitValue(const ZFProperty *propertyInfo, zfany const &ownerObj)
util for ZFPropertyCallbackIsInitValue
Definition ZFPropertyUtil.h:30
zfbool ZFPropertyIsValueAccessed(const ZFProperty *propertyInfo, zfany const &ownerObj)
util for ZFPropertyCallbackIsValueAccessed
Definition ZFPropertyUtil.h:18
zfbool ZFPropertyAllEqual(ZFObject *obj0, ZFObject *obj1)
compare all properties of obj0 with obj1's property by reflect
void ZFPropertyCopy(const ZFProperty *propertyInfo, ZFObject *dstObj, ZFObject *srcObj)
util to copy property between object
Definition ZFPropertyUtil.h:96
zfstring ZFObjectShortInfo(ZFObject *obj, zfindex maxCount=((zfindex) -1))
see ZFObjectShortInfoT
Definition ZFPropertyUtil.h:228
zfauto ZFPropertyGetInitValue(const ZFProperty *propertyInfo, zfany const &ownerObj)
util for ZFPropertyCallbackIsInitValue
Definition ZFPropertyUtil.h:40
void ZFObjectPropertyInfoT(zfstring &ret, ZFObject *obj, zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault)
use reflect to print all property if the property is not ZFPropertyIsInitValue
void ZFObjectVerboseInfoT(zfstring &ret, ZFObject *obj, zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault)
print verbose info about the object, using ZFObjectPropertyInfoT
zfstring ZFObjectPrettyInfo(ZFObject *obj, zfindex maxCount=((zfindex) -1))
see ZFObjectPrettyInfoT
Definition ZFPropertyUtil.h:205
ZFCompareResult ZFPropertyCompare(const ZFProperty *propertyInfo, ZFObject *obj0, ZFObject *obj1)
util to compare property value
Definition ZFPropertyUtil.h:66
zfstring ZFObjectPropertyInfo(ZFObject *obj, zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault)
see ZFObjectPropertyInfoT
Definition ZFPropertyUtil.h:156
zfstring ZFObjectVerboseInfo(ZFObject *obj, zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault)
see ZFObjectVerboseInfoT
Definition ZFPropertyUtil.h:181
#define ZFTokenForKeyValueContainerDefault()
see ZFTokenForKeyValueContainer, modifyable, ZFTokenForKeyValueContainerTrim by default
Definition ZFToken.h:214
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
util class to hold string tokens
Definition ZFToken.h:113
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