Inheritance diagram for oaObserver:
Public Methods | |
oaObserver (oaUInt4 priorityIn, oaBoolean enabledIn=true) |
The oaObserver<> class is an abstract template class used as the base class for observers in OpenAccess. OpenAccess defines which classes can have observers, and what the modification enum is for observers that provide modification notification. Observers are allowed at a certain level of the managed class hierarchy where the observer is expected to map to the needs of applications. For example, there is no oaFig observer. All the observers for figures are at a lower level of the class hierarchy. There is an observer for oaShapes. There is no observer specific to oaRects, and an application that only wants to know about changes to oaRects would have to create an oaShape observer and test the type of the shape in its oaShape observer notification functions.
The OpenAccess Observer Table, below, lists the available OpenAccess observers and provides information about the notifications associated with each observer and the modification enum associated with each observer that provides modification notifications (see Observer Notifications in the Programmers Guide for additional information).
To derive an observer, an application must do the following:
Refer to Observer Notification Functions in the Programmers Guide for information about the difference between standard observer notifications and special observer notifications.
oaObserver Class Implementation
Because of drop-in compatibility requirements, the oaObserver class template is actually implemented as oaVersionedObserver with #define oaObserver oaVersionedObserver
. Application code must reference oaObserver. Direct reference of oaVersionedObserver is not supported except in the case of scoped observers.
|
This is the constructor for the oaObserver<T> class. Observers are ordered by priority from lowest to highest.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.