SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Rename.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_Rename_h
7 #define swcdb_fs_Broker_Protocol_params_Rename_h
8 
9 
11 
12 
13 namespace SWC { namespace Comm { namespace Protocol {
14 namespace FsBroker { namespace Params {
15 
16 
17 class RenameReq final : public Serializable {
18  public:
19 
21  RenameReq() noexcept : from(), to() { }
22 
24  RenameReq(const std::string& a_from, const std::string& a_to)
25  : from(a_from), to(a_to) { }
26 
27  ~RenameReq() noexcept { }
28 
29  std::string from;
30  std::string to;
31 
32  private:
33 
34  size_t SWC_PURE_FUNC internal_encoded_length() const override;
35 
36  void internal_encode(uint8_t** bufp) const override;
37 
38  void internal_decode(const uint8_t** bufp, size_t* remainp) override;
39 
40 };
41 
42 }}}}}
43 
44 
45 #if defined(SWC_IMPL_SOURCE) or \
46  (defined(FS_BROKER_APP) and !defined(BUILTIN_FS_BROKER))
48 #endif
49 
50 
51 #endif // swcdb_fs_Broker_Protocol_params_Rename_h
SWC::Comm::Protocol::FsBroker::Params::RenameReq::to
std::string to
Definition: Rename.h:30
SWC::Comm::Protocol::FsBroker::Params::RenameReq::internal_encoded_length
size_t SWC_PURE_FUNC internal_encoded_length() const override
Definition: Rename.cc:14
SWC_CAN_INLINE
#define SWC_CAN_INLINE
Definition: Compat.h:102
SWC::Comm::Protocol::FsBroker::Params::RenameReq::~RenameReq
~RenameReq() noexcept
Definition: Rename.h:27
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC_PURE_FUNC
#define SWC_PURE_FUNC
Definition: Compat.h:108
SWC::Comm::Protocol::FsBroker::Params::RenameReq::RenameReq
SWC_CAN_INLINE RenameReq(const std::string &a_from, const std::string &a_to)
Definition: Rename.h:24
SWC::Comm::Serializable
Definition: Serializable.h:18
SWC::Comm::Protocol::FsBroker::Params::RenameReq::RenameReq
SWC_CAN_INLINE RenameReq() noexcept
Definition: Rename.h:21
SWC::Comm::Protocol::FsBroker::Params::RenameReq::from
std::string from
Definition: Rename.h:29
Serializable.h
SWC::Comm::Protocol::FsBroker::Params::RenameReq::internal_decode
void internal_decode(const uint8_t **bufp, size_t *remainp) override
Definition: Rename.cc:24
Rename.cc
SWC::Comm::Protocol::FsBroker::Params::RenameReq
Definition: Rename.h:17
SWC::Comm::Protocol::FsBroker::Params::RenameReq::internal_encode
void internal_encode(uint8_t **bufp) const override
Definition: Rename.cc:19