#include <State.h>
|
static constexpr int | OK = 0 |
|
static constexpr int | DISABLED = 1 |
|
static constexpr int | ERROR = 2 |
|
static constexpr int | FATAL = 3 |
|
static constexpr int | NO_RETRY = 4 |
|
Definition at line 31 of file State.h.
◆ State() [1/2]
core::socket::State::State |
( |
const int & | state, |
|
|
const std::string & | file, |
|
|
const int & | line ) |
◆ State() [2/2]
core::socket::State::State |
( |
const int & | state, |
|
|
const std::string & | file, |
|
|
const int & | line, |
|
|
int | errnum, |
|
|
const std::string & | errstr ) |
◆ operator int()
core::socket::State::operator int |
( |
| ) |
const |
◆ operator&()
State core::socket::State::operator& |
( |
int | state | ) |
|
◆ operator&=()
State & core::socket::State::operator&= |
( |
int | state | ) |
|
Definition at line 68 of file State.cpp.
68 {
70
71 return *this;
72 }
References state.
◆ operator=()
State & core::socket::State::operator= |
( |
int | state | ) |
|
Definition at line 56 of file State.cpp.
56 {
58
59 return *this;
60 }
References state.
◆ operator==()
bool core::socket::State::operator== |
( |
const int & | state | ) |
const |
◆ operator^()
State core::socket::State::operator^ |
( |
int | state | ) |
|
◆ operator^=()
State & core::socket::State::operator^= |
( |
int | state | ) |
|
Definition at line 74 of file State.cpp.
74 {
76
77 return *this;
78 }
References state.
◆ operator|()
State core::socket::State::operator| |
( |
int | state | ) |
|
◆ operator|=()
State & core::socket::State::operator|= |
( |
int | state | ) |
|
Definition at line 62 of file State.cpp.
62 {
64
65 return *this;
66 }
References state.
◆ what()
std::string core::socket::State::what |
( |
| ) |
const |
Definition at line 92 of file State.cpp.
92 {
93 std::string stateString;
94
97 stateString = "OK";
98 break;
100 stateString = "DISABLED";
101 break;
103 [[fallthrough]];
106 break;
107 }
108
109 return stateString.append(
" [").append(std::to_string(
errnum)).append(
"]");
110 }
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
static constexpr int NO_RETRY
References ERROR, NO_RETRY, and state.
◆ where()
std::string core::socket::State::where |
( |
| ) |
const |
Definition at line 112 of file State.cpp.
112 {
113 return file +
"(" + std::to_string(
line) +
")";
114 }
◆ DISABLED
int core::socket::State::DISABLED = 1 |
|
staticconstexpr |
◆ errnum
int core::socket::State::errnum |
|
private |
◆ ERROR
int core::socket::State::ERROR = 2 |
|
staticconstexpr |
◆ errstr
std::string core::socket::State::errstr |
|
private |
◆ FATAL
int core::socket::State::FATAL = 3 |
|
staticconstexpr |
◆ file
std::string core::socket::State::file |
|
private |
◆ line
int core::socket::State::line = 0 |
|
private |
◆ NO_RETRY
int core::socket::State::NO_RETRY = 4 |
|
staticconstexpr |
◆ OK
int core::socket::State::OK = 0 |
|
staticconstexpr |
◆ state
int core::socket::State::state |
|
private |
Definition at line 68 of file State.h.
Referenced by operator int(), operator&(), operator&=(), operator=(), operator==(), operator^(), operator^=(), operator|(), operator|=(), State(), State(), and what().
The documentation for this class was generated from the following files: