1 #include "daq/slc/base/ERRORNo.h"
5 const ERRORNo ERRORNo::UNKNOWN(0,
"UNKNOWN");
6 const ERRORNo ERRORNo::NSMONLINE(11,
"NSMONLINE");
7 const ERRORNo ERRORNo::NSMSENDREQ(12,
"NSMSENDREQ");
8 const ERRORNo ERRORNo::NSMMEMOPEN(13,
"SENOPEN");
9 const ERRORNo ERRORNo::NSMINIT(14,
"NSMINIT");
10 const ERRORNo ERRORNo::DATABASE(31,
"DATABASE");
12 const ERRORNo& ERRORNo::operator=(
const std::string& label)
14 if (label == NSMSENDREQ.getLabel()) {
16 }
else if (label == NSMONLINE.getLabel()) {
18 }
else if (label == NSMMEMOPEN.getLabel()) {
20 }
else if (label == NSMINIT.getLabel()) {
22 }
else if (label == DATABASE.getLabel()) {
29 const ERRORNo& ERRORNo::operator=(
int id)
31 if (
id == NSMSENDREQ.getId()) {
33 }
else if (
id == NSMONLINE.getId()) {
35 }
else if (
id == NSMMEMOPEN.getId()) {
37 }
else if (
id == NSMINIT.getId()) {
39 }
else if (
id == DATABASE.getId()) {
45 const ERRORNo& ERRORNo::operator=(
const char* label)
47 if (label != NULL) *
this = std::string(label);
48 else *
this = Enum::UNKNOWN;