28 #ifndef Hypertable_Lib_MetaLogEntity_h
29 #define Hypertable_Lib_MetaLogEntity_h
36 #include <boost/algorithm/string.hpp>
91 virtual void decode(
const uint8_t **bufp,
size_t *remainp,
92 uint16_t definition_version) {
132 virtual const std::string
name() = 0;
178 inline std::ostream &
180 os <<
"{MetaLog::Entity " << entity.
name() <<
" header={";
188 namespace EntityType {
217 void encode(uint8_t **bufp)
const override { }
219 void decode(
const uint8_t **bufp,
size_t *remainp)
override {}
221 void decode(
const uint8_t **bufp,
size_t *remainp,
222 uint16_t definition_version)
override {}
228 const std::string
name()
override {
return "Recover"; }
239 size_t *remainp)
override { }
246 #endif // Hypertable_Lib_MetaLogEntity_h
std::shared_ptr< Entity > EntityPtr
Smart pointer to Entity.
Logging routines and macros.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
Declarations for Serializable.
Mixin class that provides a standard serialization interface.
std::ostream & operator<<(std::ostream &os, Entity &entity)
ostream shift function for Entity objects.