SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Commands.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_Protocol_Commands_h
7
#define swcdb_db_Protocol_Commands_h
8
9
10
#include "
swcdb/core/Compat.h
"
11
12
13
namespace
SWC
{
namespace
Comm {
namespace
Protocol {
14
15
16
22
namespace
Rgr {
23
24
// Ranger Protocol Commands
25
enum
Command
: uint8_t {
26
NOT_IMPLEMENTED
= 0x00,
27
COLUMN_DELETE
= 0x01,
28
COLUMN_COMPACT
= 0x02,
29
SCHEMA_UPDATE
= 0x03,
30
RANGE_IS_LOADED
= 0x04,
31
RANGE_LOAD
= 0x05,
32
RANGE_UNLOAD
= 0x06,
33
RANGE_LOCATE
= 0x07,
34
RANGE_QUERY_UPDATE
= 0x08,
35
RANGE_QUERY_SELECT
= 0x09,
36
REPORT
= 0x0A,
37
COLUMNS_UNLOAD
= 0x0B,
38
ASSIGN_ID_NEEDED
= 0x0C,
39
MAX_CMD
= 0x0D
40
};
41
42
43
struct
Commands
{
44
static
constexpr
const
uint8_t
MAX
=
MAX_CMD
;
45
46
static
const
char
*
SWC_CONST_FUNC
to_string
(uint8_t cmd) noexcept;
47
};
48
}
49
50
51
57
namespace
Mngr {
58
59
// Manager Protocol Commands
60
enum
Command
: uint8_t {
61
NOT_IMPLEMENTED
= 0x00,
62
MNGR_STATE
= 0x01,
63
MNGR_ACTIVE
= 0x02,
64
COLUMN_MNG
= 0x03,
65
COLUMN_UPDATE
= 0x04,
66
COLUMN_GET
= 0x05,
67
COLUMN_LIST
= 0x06,
68
COLUMN_COMPACT
= 0x07,
69
RGR_MNG_ID
= 0x08,
70
RGR_UPDATE
= 0x09,
71
RGR_GET
= 0x0A,
72
RANGE_CREATE
= 0x0B,
73
RANGE_UNLOADED
= 0x0C,
74
RANGE_REMOVE
= 0x0D,
75
REPORT
= 0x0E,
76
DO_ECHO
= 0x0F,
77
MAX_CMD
= 0x10
78
};
79
80
struct
Commands
{
81
static
constexpr
const
uint8_t
MAX
=
MAX_CMD
;
82
83
static
const
char
*
SWC_CONST_FUNC
to_string
(uint8_t cmd) noexcept;
84
};
85
}
86
87
88
94
namespace
Bkr {
95
96
// Broker Protocol Commands
97
enum
Command
: uint8_t {
98
NOT_IMPLEMENTED
= 0x00,
99
100
COLUMN_GET
= 0x01,
101
COLUMN_LIST
= 0x02,
102
COLUMN_COMPACT
= 0x03,
103
COLUMN_MNG
= 0x04,
104
105
CELLS_UPDATE
= 0x05,
106
CELLS_SELECT
= 0x06,
107
108
MAX_CMD
= 0x07
109
};
110
111
struct
Commands
{
112
static
constexpr
const
uint8_t
MAX
=
MAX_CMD
;
113
114
static
const
char
*
SWC_CONST_FUNC
to_string
(uint8_t cmd) noexcept;
115
};
116
}
117
118
119
120
}}}
121
122
123
#ifdef SWC_IMPL_SOURCE
124
#include "
swcdb/db/Protocol/Commands.cc
"
125
#endif
126
127
128
#endif // swcdb_db_Protocol_Commands_h
SWC::Comm::Protocol::Bkr::MAX_CMD
@ MAX_CMD
Definition:
Commands.h:108
SWC::Comm::Protocol::Bkr::COLUMN_COMPACT
@ COLUMN_COMPACT
Definition:
Commands.h:102
SWC::Comm::Protocol::Mngr::Commands::MAX
static constexpr const uint8_t MAX
Definition:
Commands.h:81
SWC::Comm::Protocol::Bkr::CELLS_SELECT
@ CELLS_SELECT
Definition:
Commands.h:106
SWC::Comm::Protocol::Rgr::REPORT
@ REPORT
Definition:
Commands.h:36
SWC::Comm::Protocol::Mngr::RANGE_CREATE
@ RANGE_CREATE
Definition:
Commands.h:72
SWC::Comm::Protocol::Bkr::COLUMN_GET
@ COLUMN_GET
Definition:
Commands.h:100
SWC::Comm::Protocol::Mngr::Commands::to_string
static const char *SWC_CONST_FUNC to_string(uint8_t cmd) noexcept
Definition:
Commands.cc:58
SWC::Comm::Protocol::Mngr::Command
Command
Definition:
Commands.h:60
SWC::Comm::Protocol::Bkr::COLUMN_LIST
@ COLUMN_LIST
Definition:
Commands.h:101
SWC::Comm::Protocol::Rgr::RANGE_IS_LOADED
@ RANGE_IS_LOADED
Definition:
Commands.h:30
SWC::Comm::Protocol::Rgr::NOT_IMPLEMENTED
@ NOT_IMPLEMENTED
Definition:
Commands.h:26
SWC::Comm::Protocol::Bkr::Commands
Definition:
Commands.h:111
SWC::Comm::Protocol::Mngr::DO_ECHO
@ DO_ECHO
Definition:
Commands.h:76
SWC::Comm::Protocol::Mngr::MNGR_STATE
@ MNGR_STATE
Definition:
Commands.h:62
SWC::Comm::Protocol::Rgr::Command
Command
Definition:
Commands.h:25
SWC::Comm::Protocol::Mngr::REPORT
@ REPORT
Definition:
Commands.h:75
SWC::Comm::Protocol::Rgr::COLUMN_COMPACT
@ COLUMN_COMPACT
Definition:
Commands.h:28
SWC::Comm::Protocol::Rgr::Commands::to_string
static const char *SWC_CONST_FUNC to_string(uint8_t cmd) noexcept
Definition:
Commands.cc:17
SWC::Comm::Protocol::Rgr::COLUMNS_UNLOAD
@ COLUMNS_UNLOAD
Definition:
Commands.h:37
SWC::Comm::Protocol::Rgr::RANGE_LOCATE
@ RANGE_LOCATE
Definition:
Commands.h:33
SWC_CONST_FUNC
#define SWC_CONST_FUNC
Definition:
Compat.h:107
SWC::Comm::Protocol::Bkr::Commands::to_string
static const char *SWC_CONST_FUNC to_string(uint8_t cmd) noexcept
Definition:
Commands.cc:102
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC::Comm::Protocol::Rgr::RANGE_UNLOAD
@ RANGE_UNLOAD
Definition:
Commands.h:32
SWC::Comm::Protocol::Rgr::COLUMN_DELETE
@ COLUMN_DELETE
Definition:
Commands.h:27
Compat.h
SWC::Comm::Protocol::Mngr::COLUMN_COMPACT
@ COLUMN_COMPACT
Definition:
Commands.h:68
SWC::Comm::Protocol::Mngr::MNGR_ACTIVE
@ MNGR_ACTIVE
Definition:
Commands.h:63
SWC::Comm::Protocol::Bkr::COLUMN_MNG
@ COLUMN_MNG
Definition:
Commands.h:103
SWC::Comm::Protocol::Rgr::Commands::MAX
static constexpr const uint8_t MAX
Definition:
Commands.h:44
SWC::Comm::Protocol::Mngr::RGR_GET
@ RGR_GET
Definition:
Commands.h:71
SWC::Comm::Protocol::Bkr::CELLS_UPDATE
@ CELLS_UPDATE
Definition:
Commands.h:105
Commands.cc
SWC::Comm::Protocol::Mngr::COLUMN_GET
@ COLUMN_GET
Definition:
Commands.h:66
SWC::Comm::Protocol::Mngr::RANGE_REMOVE
@ RANGE_REMOVE
Definition:
Commands.h:74
SWC::Comm::Protocol::Mngr::RANGE_UNLOADED
@ RANGE_UNLOADED
Definition:
Commands.h:73
SWC::Comm::Protocol::Rgr::RANGE_QUERY_UPDATE
@ RANGE_QUERY_UPDATE
Definition:
Commands.h:34
SWC::Comm::Protocol::Mngr::COLUMN_LIST
@ COLUMN_LIST
Definition:
Commands.h:67
SWC::Comm::Protocol::Mngr::NOT_IMPLEMENTED
@ NOT_IMPLEMENTED
Definition:
Commands.h:61
SWC::Comm::Protocol::Rgr::ASSIGN_ID_NEEDED
@ ASSIGN_ID_NEEDED
Definition:
Commands.h:38
SWC::Comm::Protocol::Rgr::RANGE_QUERY_SELECT
@ RANGE_QUERY_SELECT
Definition:
Commands.h:35
SWC::Comm::Protocol::Mngr::Commands
Definition:
Commands.h:80
SWC::Comm::Protocol::Mngr::COLUMN_UPDATE
@ COLUMN_UPDATE
Definition:
Commands.h:65
SWC::Comm::Protocol::Rgr::RANGE_LOAD
@ RANGE_LOAD
Definition:
Commands.h:31
SWC::Comm::Protocol::Mngr::MAX_CMD
@ MAX_CMD
Definition:
Commands.h:77
SWC::Comm::Protocol::Mngr::COLUMN_MNG
@ COLUMN_MNG
Definition:
Commands.h:64
SWC::Comm::Protocol::Rgr::Commands
Definition:
Commands.h:43
SWC::Comm::Protocol::Mngr::RGR_MNG_ID
@ RGR_MNG_ID
Definition:
Commands.h:69
SWC::Comm::Protocol::Rgr::SCHEMA_UPDATE
@ SCHEMA_UPDATE
Definition:
Commands.h:29
SWC::Comm::Protocol::Rgr::MAX_CMD
@ MAX_CMD
Definition:
Commands.h:39
SWC::Comm::Protocol::Mngr::RGR_UPDATE
@ RGR_UPDATE
Definition:
Commands.h:70
SWC::Comm::Protocol::Bkr::NOT_IMPLEMENTED
@ NOT_IMPLEMENTED
Definition:
Commands.h:98
SWC::Comm::Protocol::Bkr::Command
Command
Definition:
Commands.h:97
SWC::Comm::Protocol::Bkr::Commands::MAX
static constexpr const uint8_t MAX
Definition:
Commands.h:112
include
swcdb
db
Protocol
Commands.h
Generated on Sat Jun 3 2023 18:00:07 for SWC-DB by
1.8.20