27 #ifndef FsBroker_Lib_Request_Parameters_Rename_h
28 #define FsBroker_Lib_Request_Parameters_Rename_h
40 namespace Parameters {
58 Rename(
const std::string &from,
const std::string &to) : m_from(from), m_to(to) {}
62 const char *
get_from() {
return m_from.c_str(); }
66 const char *
get_to() {
return m_to.c_str(); }
70 uint8_t encoding_version()
const override;
72 size_t encoded_length_internal()
const override;
74 void encode_internal(uint8_t **bufp)
const override;
76 void decode_internal(uint8_t version,
const uint8_t **bufp,
77 size_t *remainp)
override;
90 #endif // FsBroker_Lib_Request_Parameters_Rename_h
Request parameters for rename requests.
std::string m_to
New file name.
Rename(const std::string &from, const std::string &to)
Constructor.
std::string m_from
Original file name.
Declarations for Serializable.
Mixin class that provides a standard serialization interface.
const char * get_from()
Gets original file name.
const char * get_to()
Gets new file name.