oaObserver<oaDerivedLayerParamDef> Class Template Reference

Inheritance diagram for oaObserver<oaDerivedLayerParamDef>:

oaBaseObserver


Public Methods

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

Static Public Methods

oaBoolean hasObservers ()

Detailed Description

template<>
class oaObserver<oaDerivedLayerParamDef>

This base template class can be used to derive observers for oaDerivedLayerParamDef 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<oaDerivedLayerParamDef>::oaObserver oaUInt4    priorityIn,
oaBoolean    enabledIn = true
 

This is the oaObserver<oaDerivedLayerParamDef> base class constructor. If multiple observers exist for a given oaDerivedLayerParamDef 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 oaDerivedLayerParamDef observers
enabledIn Determines whether this observer is called when an observed event occurs

oaObserver<oaDerivedLayerParamDef>::~oaObserver   [virtual]
 

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


Member Function Documentation

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

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

void oaObserver<oaDerivedLayerParamDef>::onConflict const oaString &    name,
oaType    valueType
[virtual]
 

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

Parameters:
name name of the conflicting oaDerivedLayerParamDef
valueType type of the conflicting oaDerivedLayerParamDef

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

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

Parameters:
def pointer to the created oaDerivedLayerParamDef object

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

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

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


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

Return to top of page