ZFFramework
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
ZFPropertyDynamicRegisterExtra.h File Reference

user registered ZFProperty More...

#include "ZFPropertyDynamicRegister.h"
#include "ZFObjectCore.h"

Go to the source code of this file.

Classes

class  ZFPropertyInvokeData
 data to hold params for property, see ZFPropertyDynamicRegisterLifeCycle More...
 

Enumerations

enum  ZFPropertyLifeCycle { ZFPropertyLifeCycleOnInit , ZFPropertyLifeCycleOnVerify , 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=0)
 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

ZFPropertyLifeCycleOnVerify 

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 = 0 )
extern

dynamic version of ZFPROPERTY_ON_INIT_DECLARE

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

callback's param0 is ZFPropertyInvokeData, sender is the invokerObject