SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Sync.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_fs_Broker_Protocol_params_Sync_h
7
#define swcdb_fs_Broker_Protocol_params_Sync_h
8
9
10
#include "
swcdb/core/comm/Serializable.h
"
11
12
13
namespace
SWC
{
namespace
Comm {
namespace
Protocol {
14
namespace
FsBroker {
namespace
Params {
15
16
class
SyncReq
final :
public
Serializable
{
17
public
:
18
19
SWC_CAN_INLINE
20
SyncReq
() noexcept :
fd
(-1) { }
21
22
SWC_CAN_INLINE
23
SyncReq
(int32_t a_fd) noexcept :
fd
(a_fd) { }
24
25
int32_t
fd
;
26
27
private
:
28
29
size_t
SWC_PURE_FUNC
internal_encoded_length
()
const override
;
30
31
void
internal_encode
(uint8_t** bufp)
const override
;
32
33
void
internal_decode
(
const
uint8_t** bufp,
size_t
* remainp)
override
;
34
35
};
36
37
}}}}}
38
39
40
#if defined(SWC_IMPL_SOURCE) or \
41
(defined(FS_BROKER_APP) and !defined(BUILTIN_FS_BROKER))
42
#include "
swcdb/fs/Broker/Protocol/params/Sync.cc
"
43
#endif
44
45
46
#endif // swcdb_fs_Broker_Protocol_params_Sync_h
SWC::Comm::Protocol::FsBroker::Params::SyncReq::internal_encode
void internal_encode(uint8_t **bufp) const override
Definition:
Sync.cc:19
SWC::Comm::Protocol::FsBroker::Params::SyncReq::SyncReq
SWC_CAN_INLINE SyncReq() noexcept
Definition:
Sync.h:20
SWC::Comm::Protocol::FsBroker::Params::SyncReq::SyncReq
SWC_CAN_INLINE SyncReq(int32_t a_fd) noexcept
Definition:
Sync.h:23
SWC::Comm::Protocol::FsBroker::Params::SyncReq::internal_encoded_length
size_t SWC_PURE_FUNC internal_encoded_length() const override
Definition:
Sync.cc:15
SWC_CAN_INLINE
#define SWC_CAN_INLINE
Definition:
Compat.h:102
SWC::Comm::Protocol::FsBroker::Params::SyncReq::internal_decode
void internal_decode(const uint8_t **bufp, size_t *remainp) override
Definition:
Sync.cc:23
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC_PURE_FUNC
#define SWC_PURE_FUNC
Definition:
Compat.h:108
SWC::Comm::Serializable
Definition:
Serializable.h:18
Sync.cc
Serializable.h
SWC::Comm::Protocol::FsBroker::Params::SyncReq
Definition:
Sync.h:16
SWC::Comm::Protocol::FsBroker::Params::SyncReq::fd
int32_t fd
Definition:
Sync.h:25
include
swcdb
fs
Broker
Protocol
params
Sync.h
Generated on Sat Jun 3 2023 18:00:07 for SWC-DB by
1.8.20