10#ifndef logger_types_pico_channel_hpp
11#define logger_types_pico_channel_hpp
40 auto _name =
builder.CreateString(name);
62 static_cast<void>(len);
67 std::string s =
"Pico Motor: ";
71 s += rgs->name()->c_str();
75 s += std::to_string(rgs->channel());
86 static_cast<void>(member);
88 std::cerr <<
"meta data doesn't make sense for pico_channel.\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 PICO_CHANNEL
bool VerifyPico_channel_fbBuffer(::flatbuffers::Verifier &verifier)
const MagAOX::logger::Pico_channel_fb * GetPico_channel_fb(const void *buf)
inline ::flatbuffers::Offset< Pico_channel_fb > CreatePico_channel_fb(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, uint8_t channel=0)
static constexpr 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(const std::string &name, uint8_t channel)
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Format the message for text output, including translation of state codes to text form.
static const flatlogs::logPrioT defaultLevel
static logMetaDetail getAccessor(const std::string &member)
Get an empty logMetaDetail because meta data doesn't make sense for this log.
static const flatlogs::eventCodeT eventCode
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)