ZFFramework
 
Loading...
Searching...
No Matches
ZFPropertyDynamicRegisterExtra.h File Reference

user registered ZFProperty More...

Go to the source code of this file.

Enumerations

enum  ZFPropertyLifeCycle { ZFPropertyLifeCycleOnInit , ZFPropertyLifeCycleOnUpdate , ZFPropertyLifeCycleOnAttach , ZFPropertyLifeCycleOnDetach }
 property life cycle, see ZFPROPERTY_ON_INIT_DECLARE More...
 

Functions

zfbool ZFPropertyDynamicRegisterLifeCycle (const ZFProperty *property, const ZFClass *ownerClassOrNull, ZFPropertyLifeCycle lifeCycle, const ZFListener &callback, zfstring *errorHint=zft_zfnull)
 dynamic version of ZFPROPERTY_ON_INIT_DECLARE
 
zfbool ZFPropertyDynamicUnregisterLifeCycle (const ZFProperty *property, const ZFClass *ownerClassOrNull, ZFPropertyLifeCycle lifeCycle)
 see ZFPropertyDynamicRegisterLifeCycle
 

Detailed Description

user registered ZFProperty

Enumeration Type Documentation

◆ ZFPropertyLifeCycle

property life cycle, see ZFPROPERTY_ON_INIT_DECLARE

Enumerator
ZFPropertyLifeCycleOnInit 

see ZFPROPERTY_ON_INIT_DECLARE

ZFPropertyLifeCycleOnUpdate 

see ZFPROPERTY_ON_INIT_DECLARE

ZFPropertyLifeCycleOnAttach 

see ZFPROPERTY_ON_INIT_DECLARE

ZFPropertyLifeCycleOnDetach 

see ZFPROPERTY_ON_INIT_DECLARE

Function Documentation

◆ ZFPropertyDynamicRegisterLifeCycle()

zfbool ZFPropertyDynamicRegisterLifeCycle ( const ZFProperty * property,
const ZFClass * ownerClassOrNull,
ZFPropertyLifeCycle lifeCycle,
const ZFListener & callback,
zfstring * errorHint = zft_zfnull )
extern

dynamic version of ZFPROPERTY_ON_INIT_DECLARE

can not be registered if the property already has custom life cycle for ownerClass