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

user registered ZFProperty More...

Go to the source code of this file.

Classes

class  ZFPropertyDynamicRegisterParam
 param for ZFPropertyDynamicRegister More...
 

Functions

const ZFPropertyZFPropertyDynamicRegister (const ZFPropertyDynamicRegisterParam &param, zfstring *errorHint=zft_zfnull)
 dynamic register a property, return null if fail
 
void ZFPropertyDynamicUnregister (const ZFProperty *property)
 see ZFPropertyDynamicRegister
 

Detailed Description

user registered ZFProperty

Function Documentation

◆ ZFPropertyDynamicRegister()

const ZFProperty * ZFPropertyDynamicRegister ( const ZFPropertyDynamicRegisterParam & param,
zfstring * errorHint = zft_zfnull )
extern

dynamic register a property, return null if fail

comparing to ZFPropertyUserRegisterRetain, a dynamic property would:

  • completely dynamic, can be registered from script language
  • use ZFMethodGenericInvoker to implement, have lower performance (trade for flexibility)
  • no weak property support (assign property with ZFObject type)
  • you may register a property by supplying existing setter and getter method, or simply leave it empty to use builtin impl
Note
dynamic registered contents would be removed automatically during ZFFrameworkCleanup as level ZFLevelZFFrameworkHigh