ZFFramework
Loading...
Searching...
No Matches
Instance observer

ZFClass supply methods to observe event that any of specified class has created:

ZFLISTENER(objCreated) {
zfLog() << "MyClass created: " << zfargs.sender();
MyClass::ClassData()->instanceObserverAdd(objCreated);
zfobj<MyClass> p0; // would cause objCreated being called
zfobj<SomeTypeOfMyClass> p1; // would cause objCreated being called
zfobj<NotTypeOfMyClass> p2; // would not cause objCreated being called
#define ZFLISTENER(name)
util to declare a ZFListener locally
Definition ZFListenerDeclare.h:53
#define ZFLISTENER_END()
see ZFLISTENER
Definition ZFListenerDeclare.h:17
#define zfLog(...)
thread-safe log utility
Definition ZFLog.h:64
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:164