|
| ERRORNo (int id, const char *label) |
|
Definition at line 19 of file ERRORNo.h.
◆ ERRORNo() [1/5]
◆ ERRORNo() [2/5]
◆ ERRORNo() [3/5]
◆ ERRORNo() [4/5]
◆ ~ERRORNo()
◆ ERRORNo() [5/5]
ERRORNo |
( |
int |
id, |
|
|
const char * |
label |
|
) |
| |
|
inlineprotected |
◆ getId()
◆ getLabel()
const char * getLabel |
( |
| ) |
const |
|
inlineinherited |
Definition at line 35 of file Enum.h.
35{ return m_label.c_str(); }
◆ getLabelString()
const std::string & getLabelString |
( |
| ) |
const |
|
inlineinherited |
◆ operator=() [1/3]
const ERRORNo & operator= |
( |
const char * |
label | ) |
|
Definition at line 52 of file ERRORNo.cc.
53{
54 if (label != nullptr) *this = std::string(label);
55 else *this = Enum::UNKNOWN;
56 return *this;
57}
◆ operator=() [2/3]
const ERRORNo & operator= |
( |
const std::string & |
label | ) |
|
Definition at line 19 of file ERRORNo.cc.
20{
21 if (label == NSMSENDREQ.getLabel()) {
22 return NSMSENDREQ;
23 } else if (label == NSMONLINE.getLabel()) {
24 return NSMONLINE;
25 } else if (label == NSMMEMOPEN.getLabel()) {
26 return NSMMEMOPEN;
27 } else if (label == NSMINIT.getLabel()) {
28 return NSMINIT;
29 } else if (label == DATABASE.getLabel()) {
30 return DATABASE;
31 } else {
32 return UNKNOWN;
33 }
34}
◆ operator=() [3/3]
const ERRORNo & operator= |
( |
int |
id | ) |
|
Definition at line 36 of file ERRORNo.cc.
37{
38 if (id == NSMSENDREQ.getId()) {
39 return NSMSENDREQ;
40 } else if (id == NSMONLINE.getId()) {
41 return NSMONLINE;
42 } else if (id == NSMMEMOPEN.getId()) {
43 return NSMMEMOPEN;
44 } else if (id == NSMINIT.getId()) {
45 return NSMINIT;
46 } else if (id == DATABASE.getId()) {
47 return DATABASE;
48 }
49 return UNKNOWN;
50}
◆ DATABASE
◆ m_id
◆ m_label
◆ NSMINIT
◆ NSMMEMOPEN
◆ NSMONLINE
◆ NSMSENDREQ
◆ UNKNOWN
The documentation for this class was generated from the following files: