|
GLG Toolkit, C / C++ API Library
Version 4.6
|
Functions | |
| GlgObject | CreateAlarmList (void) |
| Creates and returns a list of alarms defined in this object. More... | |
| GlgObject | GetAlarmObject (char *alarm_label, GlgBoolean single_alarm) |
| Returns an alarm object with a specified alarm label, or a list of alarms matching the specified alarm label pattern. More... | |
| GlgObject CreateAlarmList | ( | void | ) |
Creates and returns a list of alarms defined in this object.
The top level viewport may be used to query the list of alarms of the whole drawing. This is a wrapper for GlgCreateAlarmList.
Each element of the returned group is an data object that has an alarm attached. The GetElement and GetSize methods of the Intermediate API may be used within the Standard API to handle the returned group object.
If this object is not a viewport, the returned alarm list will include only the alarms contained inside the object. For a viewport, the alarm list will contain all alarms defined in the viewport's drawing.
The following code prints information about all alarms defined in the drawing:
| GlgObject GetAlarmObject | ( | char * | alarm_label, |
| GlgBoolean | single_alarm | ||
| ) |
Returns an alarm object with a specified alarm label, or a list of alarms matching the specified alarm label pattern.
This is a wrapper for GlgGetAlarmObject.
| alarm_label | A string or a pattern for the search, supporting wildcards: ? (matches any single character) and * (matches any sequence of characters). |
| single_alarm | Defines a single alarm (True) or multiple alarm (False) mode. |
The GetElement and GetSize methods may be used to handle the returned group object.