Alarm Viewer API Features
The AMV API is implemented as a set of C++ classes which encapsulate various aspects of the connection between an alarm viewer process, such as the standard Alarm Viewer, and the AMRP. The classes and their functions are summarized below.
Class | Description |
---|---|
CAmvAlarm | An individual alarm instance |
CAmvClassFilter | An Alarm Class (for example, HIGH) |
CAmvClassFilterList | The set of classes used to filter alarms for a connection. |
CAmvResourceFilter | A Resource |
CAmvConn | The class through which the connection between an alarm viewer and the Alarm Manager is implemented. |
CAmvFieldFilter | The set of fields used to filter alarms for a connection. |
CAmvFieldFilterList | A way to loop through the field filters currently in use. |
CAmvResourceFilterList | The set of resources used to filter alarms for a connection. |
CAmvSetupList | A way to access Alarm Viewer saved setups |
CAmvStateFilter | The set of alarm states used to filter alarms for a connection. |
CAmvStateFilterList | A way to loop through the state filters currently in use. |
CAmvTimeFilter | The time used to filter alarms for a connection. If enabled, only alarms after the specified time are passed. |
Connections between alarm viewers and the alarm manager are encapsulated in the CAmvConn
(Alarm Viewer Connection) class. When a CAmvConn
object is constructed, you provide a number of callback functions. The constructor starts a new thread to process alarm manager communication. This thread calls your functions to process alarms.