8#include "daq/slc/base/ERRORNo.h"
12const ERRORNo ERRORNo::UNKNOWN(0,
"UNKNOWN");
13const ERRORNo ERRORNo::NSMONLINE(11,
"NSMONLINE");
14const ERRORNo ERRORNo::NSMSENDREQ(12,
"NSMSENDREQ");
15const ERRORNo ERRORNo::NSMMEMOPEN(13,
"SENOPEN");
16const ERRORNo ERRORNo::NSMINIT(14,
"NSMINIT");
17const ERRORNo ERRORNo::DATABASE(31,
"DATABASE");
19const ERRORNo& ERRORNo::operator=(
const std::string& label)
21 if (label == NSMSENDREQ.getLabel()) *
this = NSMSENDREQ;
22 else if (label == NSMONLINE.getLabel()) *
this = NSMONLINE;
23 else if (label == NSMMEMOPEN.getLabel()) *
this = NSMMEMOPEN;
24 else if (label == NSMINIT.getLabel()) *
this = NSMINIT;
25 else if (label == DATABASE.getLabel()) *
this = DATABASE;
30const ERRORNo& ERRORNo::operator=(
int id)
32 if (
id == NSMSENDREQ.getId()) *
this = NSMSENDREQ;
33 else if (
id == NSMONLINE.getId()) *
this = NSMONLINE;
34 else if (
id == NSMMEMOPEN.getId()) *
this = NSMMEMOPEN;
35 else if (
id == NSMINIT.getId()) *
this = NSMINIT;
36 else if (
id == DATABASE.getId()) *
this = DATABASE;
41const ERRORNo& ERRORNo::operator=(
const char* label)
43 if (label !=
nullptr) *
this = std::string(label);
44 else *
this = Enum::UNKNOWN;
Abstract base class for different kinds of events.