#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 53 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 90 of file State.cpp.
90 {
92
93 return *this;
94 }
References state.
◆ operator=()
State & core::socket::State::operator= |
( |
int | state | ) |
|
Definition at line 78 of file State.cpp.
78 {
80
81 return *this;
82 }
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 96 of file State.cpp.
96 {
98
99 return *this;
100 }
References state.
◆ operator|()
State core::socket::State::operator| |
( |
int | state | ) |
|
◆ operator|=()
State & core::socket::State::operator|= |
( |
int | state | ) |
|
Definition at line 84 of file State.cpp.
84 {
86
87 return *this;
88 }
References state.
◆ what()
std::string core::socket::State::what |
( |
| ) |
const |
Definition at line 114 of file State.cpp.
114 {
115 std::string stateString;
116
119 stateString = "OK";
120 break;
122 stateString = "DISABLED";
123 break;
125 [[fallthrough]];
128 break;
129 }
130
131 return stateString.append(
" [").append(std::to_string(
errnum)).append(
"]");
132 }
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 134 of file State.cpp.
134 {
135 return file +
"(" + std::to_string(
line) +
")";
136 }
◆ 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 90 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: