oaObserver<oaConstraintParamDef> Class Template Reference

Inheritance diagram for oaObserver<oaConstraintParamDef>:

oaBaseObserver


Public Methods

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

Static Public Methods

oaBoolean hasObservers ()

Detailed Description

template<>
class oaObserver<oaConstraintParamDef>

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

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

oaObserver<oaConstraintParamDef>::~oaObserver   [virtual]
 

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


Member Function Documentation

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

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

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

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

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

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

Parameters:
def pointer to the created oaConstraintParamDef object

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

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

Parameters:
def pointer to the oaConstraintParamDef about to be destroyed


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

Return to top of page