add severityCount for severityNames
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
#include <pv/alarm.h>
|
||||
namespace epics { namespace pvData {
|
||||
|
||||
static String severityNames[4] =
|
||||
const size_t severityCount = 4;
|
||||
static String severityNames[severityCount] =
|
||||
{
|
||||
String("none"),
|
||||
String("minor"),
|
||||
|
||||
@@ -14,6 +14,7 @@ enum AlarmSeverity {
|
||||
noAlarm,minorAlarm,majorAlarm,invalidAlarm
|
||||
};
|
||||
|
||||
extern const size_t severityCount;
|
||||
class AlarmSeverityFunc {
|
||||
public:
|
||||
static AlarmSeverity getSeverity(int value);
|
||||
|
||||
Reference in New Issue
Block a user