SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
MngrState.h
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 #ifndef swcdb_db_types_MngrState_h
7 #define swcdb_db_types_MngrState_h
8 
9 #include "swcdb/core/Compat.h"
10 
11 namespace SWC { namespace DB { namespace Types {
12 
13 
14 enum class MngrState : uint8_t {
15  NOTSET = 0,
16  OFF = 1,
17  STANDBY = 2,
18  WANT = 3,
19  NOMINATED = 4,
20  ACTIVE = 5
21 };
22 
23 
24 const char* SWC_CONST_FUNC to_string(MngrState state) noexcept;
25 
26 
27 }}}
28 
29 #ifdef SWC_IMPL_SOURCE
31 #endif
32 
33 #endif // swcdb_db_types_MngrState_h
SWC::DB::Types::MngrColumn::NOTSET
@ NOTSET
Definition: MngrColumnState.h:17
SWC::DB::Types::MngrState::NOTSET
@ NOTSET
SWC::DB::Types::to_string
const char *SWC_CONST_FUNC to_string(Column typ) noexcept
Definition: Column.cc:38
SWC_CONST_FUNC
#define SWC_CONST_FUNC
Definition: Compat.h:107
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
Compat.h
SWC::DB::Types::MngrState
MngrState
Definition: MngrState.h:14
MngrState.cc