oaObserver<oaDerivedLayerDef> Class Template Reference

Inheritance diagram for oaObserver<oaDerivedLayerDef>:

oaBaseObserver


Public Methods

 oaObserver (oaUInt4 priorityIn, oaBoolean enabledIn=true)
virtual ~oaObserver ()
virtual void onPreDestroy (oaDerivedLayerDef *def)
virtual void onPostCreate (oaDerivedLayerDef *def)
virtual void onConflict (const oaString &name)

Static Public Methods

oaBoolean hasObservers ()

Detailed Description

template<>
class oaObserver<oaDerivedLayerDef>

This base template class can be used to derive observers for oaDerivedLayerDef objects. It supports postCreate, preDestroy, and onConflict event notifications.

See oaObserver for information on using OpenAccess observer template classes to derive and instantiate observers in an application.


Constructor & Destructor Documentation

oaObserver<oaDerivedLayerDef>::oaObserver oaUInt4    priorityIn,
oaBoolean    enabledIn = true
 

This is the oaObserver<oaDerivedLayerDef> base class constructor. If multiple observers exist for a given oaDerivedLayerDef notification event, observers with a lower priorityIn value are called before those with a higher value.

Parameters:
priorityIn priority of this observer relative to other oaDerivedLayerDef observers
enabledIn Determines whether this observer is called when an observed event occurs

oaObserver<oaDerivedLayerDef>::~oaObserver   [virtual]
 

This is the destructor for the oaObserver<oaDerivedLayerDef> class. This function destroys this oaObserver<oaDerivedLayerDef> object, deactivating and deleting this observer from the DerivedLayerDef observer list, and freeing all resources associated with this observer.


Member Function Documentation

oaBoolean oaObserver<oaDerivedLayerDef>::hasObservers   [inline, static]
 

This function returns true if any observers for this type are active.

void oaObserver<oaDerivedLayerDef>::onConflict const oaString &    name [virtual]
 

This function is called if an on-disk oaDerivedLayerDef conflicts with an existing oaDerivedLayerDef definition. Note that all data associated with the conflicting definition, including the definition itself, is destroyed following this notification.

Parameters:
name The name of the conflicting oaDerivedLayerDef.

void oaObserver<oaDerivedLayerDef>::onPostCreate oaDerivedLayerDef *    def [virtual]
 

This function is called after an oaDerivedLayerDef is created. The application's derived observer class should implement this function to receive notification after an oaDerivedLayerDef is created.

Parameters:
def pointer to the created oaDerivedLayerDef object

void oaObserver<oaDerivedLayerDef>::onPreDestroy oaDerivedLayerDef *    def [virtual]
 

This function is called before an oaDerivedLayerDef is destroyed. The application's derived observer class should implement this function to receive notification when an oaDerivedLayerDef is about to be destroyed.

Parameters:
def pointer to the oaDerivedLayerDef object about to be destroyed


The documentation for this class was generated from the following files:

Return to top of page