ZFFramework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ZFProperty Class Reference

info for a property for ZFObject, see ZFPROPERTY_RETAIN for more info More...

#include <ZFProperty.h>

Public Member Functions

void objectInfoT (zfstring &ret) const
 see objectInfo
 
zfstring objectInfo (void) const
 get info about this property
 
const zfcharpropertyInternalId (void) const
 internal property id, for debug use only
 
zfbool propertyIsUserRegister (void) const
 true if this property is registered by ZFPropertyUserRegisterRetain
 
zfbool propertyIsDynamicRegister (void) const
 true if this property is registered by ZFPropertyDynamicRegister
 
zfany propertyDynamicRegisterUserData (void) const
 see ZFPropertyDynamicRegister
 
zfbool propertySerializable (void) const
 true if the property is serializable
 
const ZFClasspropertyOwnerClass (void) const
 get the property's owner class
 
const zfcharpropertyName (void) const
 name for the property
 
const zfcharpropertyTypeName (void) const
 type string for the property
 
const zfcharpropertyTypeId (void) const
 type id string declared in ZFPROPERTY_XXX
 
const ZFMethodsetterMethod (void) const
 get the getter method
 
const ZFMethodgetterMethod (void) const
 get the getter method
 
zfbool propertyIsRetainProperty (void) const
 true if the property is retain property
 
const ZFClasspropertyClassOfRetainProperty (void) const
 for retain property only, get the retain property's declared class
 

Public Attributes

ZFPropertyCallbackIsValueAccessed callbackIsValueAccessed
 see ZFPropertyCallbackIsValueAccessed
 
ZFPropertyCallbackIsInitValue callbackIsInitValue
 see ZFPropertyCallbackIsInitValue
 
ZFPropertyCallbackValueReset callbackValueReset
 see ZFPropertyCallbackValueReset
 
ZFPropertyCallbackUserRegisterInitValueSetup callbackUserRegisterInitValueSetup
 see ZFPropertyUserRegisterAssign
 
ZFPropertyCallbackDynamicRegisterInitValueGetter callbackDynamicRegisterInitValueGetter
 see ZFPropertyDynamicRegister
 

Detailed Description

info for a property for ZFObject, see ZFPROPERTY_RETAIN for more info

Member Function Documentation

◆ propertySerializable()

zfbool ZFProperty::propertySerializable ( void ) const

true if the property is serializable

property are serializable except:

Note
this property would be calculated at runtime, take care of performance

◆ propertyTypeName()

const zfchar * ZFProperty::propertyTypeName ( void ) const
inline

type string for the property

note the type string is the macro expand from the type, it may or may not be same for same type, usually for debug use only

◆ propertyTypeId()

const zfchar * ZFProperty::propertyTypeId ( void ) const
inline

type id string declared in ZFPROPERTY_XXX

this value should be ensured the type id for the type or ZFTypeId_none if no known type, this value is used for property's advanced serialize and copy logic, see ZFTypeInfo

Note
for retain property, this value is always the class name of the propertyClassOfRetainProperty

◆ propertyIsRetainProperty()

zfbool ZFProperty::propertyIsRetainProperty ( void ) const
inline

true if the property is retain property

note that bool property is also a assign property, it also have a getter method named "propertyName"

◆ propertyClassOfRetainProperty()

const ZFClass * ZFProperty::propertyClassOfRetainProperty ( void ) const
inline

for retain property only, get the retain property's declared class

note it's the declared class, property's value may be subclass of it


The documentation for this class was generated from the following file: