10 #ifndef logger_types_state_change_hpp
11 #define logger_types_state_change_hpp
13 #include "../../app/stateCodes.hpp"
15 #include "generated/state_change_generated.h"
42 auto gs = CreateState_change_fb(
builder, from, to);
52 return VerifyState_change_fbBuffer(verifier);
63 static_cast<void>(len);
65 auto rgs = GetState_change_fb(msgBuffer);
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.
constexpr static 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 msgString(void *msgBuffer, flatlogs::msgLenT len)
Format the message for text output, including translation of state codes to text form.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)