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()) {
23 }
else if (label == NSMONLINE.getLabel()) {
25 }
else if (label == NSMMEMOPEN.getLabel()) {
27 }
else if (label == NSMINIT.getLabel()) {
29 }
else if (label == DATABASE.getLabel()) {
36const ERRORNo& ERRORNo::operator=(
int id)
38 if (
id == NSMSENDREQ.getId()) {
40 }
else if (
id == NSMONLINE.getId()) {
42 }
else if (
id == NSMMEMOPEN.getId()) {
44 }
else if (
id == NSMINIT.getId()) {
46 }
else if (
id == DATABASE.getId()) {
52const ERRORNo& ERRORNo::operator=(
const char* label)
54 if (label !=
nullptr) *
this = std::string(label);
55 else *
this = Enum::UNKNOWN;
Abstract base class for different kinds of events.