Definition at line 87 of file DimState.h.
References State::comment, DimState::description(), Time::GetAsStr(), State::index, kBlue, kBold, DimState::kNotAvailable, DimState::kOffline, State::name, DimState::server, DimState::state(), and DimState::time().
91 out << s.
time().
GetAsStr(
"%H:%M:%S.%f").substr(0, 12) <<
" - ";
95 return out <<
": Offline";
105 out << rc.
name <<
"[" << rc.
index <<
"]";
virtual State description() const
std::string comment
Name (e.g. 'Connected')
const int32_t & state() const
std::string name
Index (e.g. 1)
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
const Time & time() const