10 #ifndef logger_types_outlet_state_hpp
11 #define logger_types_outlet_state_hpp
13 #include "generated/outlet_state_generated.h"
40 auto gs = CreateOutlet_state_fb(
builder, outlet, state);
51 return VerifyOutlet_state_fbBuffer(verifier);
60 static_cast<void>(len);
62 auto rgs = GetOutlet_state_fb(msgBuffer);
65 s <<
"Outlet: " << (int) rgs->outlet() <<
" ";
71 else if(rgs->state()==1)
75 else if(rgs->state()==0)
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.
Message type for resolving log messages with a f.b. builder.
flatbuffers::FlatBufferBuilder builder
Base class for logs consisting of a flatbuffer message.
messageT(uint8_t outlet, uint8_t state)
Application State Change.
static const flatlogs::eventCodeT eventCode
static const flatlogs::logPrioT defaultLevel
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.