|
GLG Toolkit, C / C++ API Library
Version 4.6
|
Functions | |
| GlgObject | GlgCreateAlarmList (GlgObject object) |
| Creates and returns a list of alarms defined in the drawing. More... | |
| GlgAlarmHandler | GlgSetAlarmHandler (GlgAlarmHandler handler) |
| Installs a global alarm handler function that will be invoked to process alarms. More... | |
Creates and returns a list of alarms defined in the drawing.
| object | An object whose alarms are queried. The top level viewport may be used to query a list of alarms of the whole drawing. |
Each element of the returned group is an data object that has an alarm attached. The GlgGetElement and GlgGetSize functions of the Intermediate API may be used within the Standard API to handle the returned group object.
If object is not a viewport, the returned alarm list will include only alarms contained inside the object. For a viewport, the alarm list will contain all alarms defined in the viewport's drawing.
Example
The following code prints information about all alarms defined in the drawing:
| GlgAlarmHandler GlgSetAlarmHandler | ( | GlgAlarmHandler | handler | ) |
Installs a global alarm handler function that will be invoked to process alarms.
Alarms are generated by the Alarm objects attached to objects in the drawing and activated when their controlled values go outside the ranges specified in the Alarm objects.
| handler | Specifies a function that will be invoked to process alarm messages generated by the application's drawings. |
See GlgAlarmHandler for more information.