10 #ifndef logger_types_saving_state_change_hpp
11 #define logger_types_saving_state_change_hpp
13 #include "../../app/stateCodes.hpp"
15 #include "generated/saving_state_change_generated.h"
38 auto gs = CreateSaving_state_change_fb(
builder, state, frameNo);
48 return VerifySaving_state_change_fbBuffer(verifier);
59 static_cast<void>(len);
61 auto rgs = GetSaving_state_change_fb(msgBuffer);
66 if(rgs->state() == 0) s <<
"stopped at frame number ";
67 else s <<
"started at frame number ";
The MagAO-X logger flatbuffer log base type.
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
static void * messageBuffer(bufferPtrT &logBuffer)
Get the message buffer address.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
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 state, uint64_t frameNo)
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Format the message for text output, including translation of state codes to text form.