10#ifndef logger_types_state_change_hpp
11#define logger_types_state_change_hpp
13#include "../../app/stateCodes.hpp"
63 static_cast<void>(len);
73 static std::string
from(
void * msgBuffer )
80 static std::string
to(
void * msgBuffer )
92 static_cast<void>(member);
94 std::cerr <<
"meta data doesn't make sense for state_change.\n";
The MagAO-X logger flatbuffer log base type.
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
int8_t logPrioT
The type of the log priority code.
static void * messageBuffer(bufferPtrT &logBuffer)
Get the message buffer address.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
static constexpr flatlogs::eventCodeT STATE_CHANGE
bool VerifyState_change_fbBuffer(::flatbuffers::Verifier &verifier)
inline ::flatbuffers::Offset< State_change_fb > CreateState_change_fb(::flatbuffers::FlatBufferBuilder &_fbb, int16_t from=0, int16_t to=0)
const MagAOX::logger::State_change_fb * GetState_change_fb(const void *buf)
static constexpr logPrioT LOG_INFO
Informational. The info log level is the lowest level recorded during normal operations.
static std::string codeText(const stateCodeT &stateCode)
Get an ASCII string corresponding to an application stateCode.
Message type for resolving log messages with a f.b. builder.
flatbuffers::FlatBufferBuilder builder
Base class for logs consisting of a flatbuffer message.
messageT(int16_t from, int16_t to)
Application State Change.
static const flatlogs::eventCodeT eventCode
static const flatlogs::logPrioT defaultLevel
static std::string from(void *msgBuffer)
Access the from field.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Format the message for text output, including translation of state codes to text form.
static logMetaDetail getAccessor(const std::string &member)
Get an empty logMetaDetail because meta data doesn't make sense for this log.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static std::string to(void *msgBuffer)
Access the to field.