#include <ngcbALARM.hpp>
Public Member Functions | |
| ngcbALARM & | operator= (const ngcbALARM &other) |
| Operator =. | |
| ngcbALARM (const ngcbALARM &other) | |
| Copy constructor. | |
| ngcbALARM () | |
| Constructor. | |
| ngcbALARM (ngcbALARM_SYS *sys, const char *name, int level, const char *msg) | |
| Constructor for logical alarm. | |
| ngcbALARM (ngcbALARM_SYS *sys, const char *name, int level, const char *msg, int value, const char *unit=NULL) | |
| Constructor for alarm with integer value. | |
| ngcbALARM (ngcbALARM_SYS *sys, const char *name, int level, const char *msg, double value, const char *unit=NULL) | |
| Constructor for alarm with double precision floating point value. | |
| virtual | ~ngcbALARM () |
| Destructor. | |
| ngcb_alarm_id | Id () |
| Return alarm id. | |
| const char * | Name () |
| Return alarm name. | |
| int | Level () |
| Return actual alarm severity level. | |
| const char * | Msg () |
| Return alarm message. | |
| const char * | Format () |
| Return format string to be used for printf-style formatted output. | |
| const char * | Unit () |
| Return the unit of the alarm value. | |
| const char * | Value (int showUnit) |
| Return formatted value string. | |
| int | AckPending () |
| Check if alarm has acknowledge pending. | |
| void | Ack () |
| Acknowledge alarm. | |
Alarm class
| ngcbALARM::ngcbALARM | ( | const ngcbALARM & | other | ) |
Copy constructor.
| ngcbALARM::ngcbALARM | ( | ) |
Constructor.
| ngcbALARM::ngcbALARM | ( | ngcbALARM_SYS * | sys, |
| const char * | name, | ||
| int | level, | ||
| const char * | msg ) |
Constructor for logical alarm.
| ngcbALARM::ngcbALARM | ( | ngcbALARM_SYS * | sys, |
| const char * | name, | ||
| int | level, | ||
| const char * | msg, | ||
| int | value, | ||
| const char * | unit = NULL ) |
Constructor for alarm with integer value.
| ngcbALARM::ngcbALARM | ( | ngcbALARM_SYS * | sys, |
| const char * | name, | ||
| int | level, | ||
| const char * | msg, | ||
| double | value, | ||
| const char * | unit = NULL ) |
Constructor for alarm with double precision floating point value.
|
virtual |
Destructor.
| void ngcbALARM::Ack | ( | ) |
Acknowledge alarm.
| int ngcbALARM::AckPending | ( | ) |
Check if alarm has acknowledge pending.
| const char * ngcbALARM::Format | ( | ) |
Return format string to be used for printf-style formatted output.
| ngcb_alarm_id ngcbALARM::Id | ( | ) |
Return alarm id.
| int ngcbALARM::Level | ( | ) |
Return actual alarm severity level.
| const char * ngcbALARM::Msg | ( | ) |
Return alarm message.
| const char * ngcbALARM::Name | ( | ) |
Return alarm name.
| const char * ngcbALARM::Unit | ( | ) |
Return the unit of the alarm value.
| const char * ngcbALARM::Value | ( | int | showUnit | ) |
Return formatted value string.