10 #ifndef logger_types_empty_log_hpp
11 #define logger_types_empty_log_hpp
36 template<
class derivedT>
45 static_cast<void>(
msg);
58 static_cast<void>(msgBuffer);
59 static_cast<void>(
msg);
73 static_cast<void>(
msg);
74 static_cast<void>(msgBuffer);
75 static_cast<void>(len);
85 static_cast<void>(logBuff);
91 static_cast<void>(msgBuffer);
92 static_cast<void>(len);
97 static std::string
msgJSON(
void * msgBuffer,
99 const uint8_t * binarySchema,
100 const unsigned int binarySchemaLength
103 static_cast<void>(len);
104 static_cast<void>(msgBuffer);
105 static_cast<void>(binarySchema);
106 static_cast<void>(binarySchemaLength);
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
Empty type for resolving logs with no message.
Base class for logs consisting of an empty message.
static int extract(messageT &msg, void *msgBuffer, flatlogs::msgLenT len)
Extract the message from a buffer – a no-op since it is an emptyMessage.
emptyMessage messageT
The type of the message.
static flatlogs::msgLenT length(const messageT &msg)
Get the length of the message.
static std::string msgJSON(void *msgBuffer, flatlogs::msgLenT len, const uint8_t *binarySchema, const unsigned int binarySchemaLength)
static int format(void *msgBuffer, const messageT &msg)
Format the buffer given a message – a no-op since the message is an emptyMessage.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)