OpendTect  6.6
Classes | Macros
notify.h File Reference
Include dependency graph for notify.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NotifierAccess
 Interface class for Notifier. See comments there.
More...
 
class  Notifier< T >
 Class to help setup a callback handling. More...
 
class  CNotifier< T, PayLoad >
 Notifier with automatic capsule creation. More...
 
class  NotifyStopper
 Temporarily disables a Notifier. More...
 

Macros

#define mAttachObjCB(objptr, notifier, func, chk)   attachCB( notifier, CallBack( objptr, mCBFn(func) ), chk )
 
#define mDetachObjCB(objptr, notifier, func)   detachCB( notifier, CallBack( objptr, mCBFn(func) ) )
 
#define mAttachCB(notifier, func)   mAttachObjCB( this, notifier, func, false )
 
#define mAttachCBIfNotAttached(notifier, func)   mAttachObjCB( this, notifier, func, true )
 
#define mDetachCB(notifier, func)   mDetachObjCB( this, notifier, func )
 
#define mDeclInstanceCreatedNotifierAccess(clss)   static Notifier<clss>& instanceCreated()
 
#define mDefineInstanceCreatedNotifierAccess(clss)
 
#define mTriggerInstanceCreatedNotifier()   instanceCreated().trigger( this )
 

Macro Definition Documentation

◆ mAttachCB

#define mAttachCB (   notifier,
  func 
)    mAttachObjCB( this, notifier, func, false )

◆ mAttachCBIfNotAttached

#define mAttachCBIfNotAttached (   notifier,
  func 
)    mAttachObjCB( this, notifier, func, true )

◆ mAttachObjCB

#define mAttachObjCB (   objptr,
  notifier,
  func,
  chk 
)    attachCB( notifier, CallBack( objptr, mCBFn(func) ), chk )

◆ mDeclInstanceCreatedNotifierAccess

#define mDeclInstanceCreatedNotifierAccess (   clss)    static Notifier<clss>& instanceCreated()

Set of macros to add an instanceCreated() notifier This can provide a notification of any instance of a class being produced

◆ mDefineInstanceCreatedNotifierAccess

#define mDefineInstanceCreatedNotifierAccess (   clss)
Value:
Notifier<clss>& clss::instanceCreated() \
{ \
mDefineStaticLocalObject( Notifier<clss>, theNotif, (0)); \
return theNotif; \
}

◆ mDetachCB

#define mDetachCB (   notifier,
  func 
)    mDetachObjCB( this, notifier, func )

◆ mDetachObjCB

#define mDetachObjCB (   objptr,
  notifier,
  func 
)    detachCB( notifier, CallBack( objptr, mCBFn(func) ) )

◆ mTriggerInstanceCreatedNotifier

#define mTriggerInstanceCreatedNotifier ( )    instanceCreated().trigger( this )
Notifier
Class to help setup a callback handling.
Definition: notify.h:126

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021