oaObserver<oaConstraintGroupDef> Class Template Reference

Inheritance diagram for oaObserver<oaConstraintGroupDef>:

oaBaseObserver


Public Methods

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

Static Public Methods

oaBoolean hasObservers ()

Detailed Description

template<>
class oaObserver<oaConstraintGroupDef>

This base template class can be used to derive observers for oaConstraintGroupDef objects. It supports preDestroy, postCreate 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<oaConstraintGroupDef>::oaObserver oaUInt4    priorityIn,
oaBoolean    enabledIn = true
 

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

oaObserver<oaConstraintGroupDef>::~oaObserver   [virtual]
 

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


Member Function Documentation

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

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

void oaObserver<oaConstraintGroupDef>::onConflict const oaString &    name,
oaType    defType
[virtual]
 

This function is called if an on-disk oaConstraintGroupDef conflicts with an existing oaConstraintGroupDef 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 oaConstraintGroupDef
defType type of the conflicting oaConstraintGroupDef

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

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

Parameters:
def pointer to the created oaConstraintGroupDef object

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

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

Parameters:
def pointer to the oaConstraintGroupDef about to be destroyed


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

Return to top of page