10 #ifndef logger_types_telem_pico_hpp
11 #define logger_types_telem_pico_hpp
13 #include "generated/telem_pico_generated.h"
40 auto _countsVec =
builder.CreateVector(counts);
42 auto fp = CreateTelem_pico_fb(
builder, _countsVec );
55 return VerifyTelem_pico_fbBuffer(verifier);
64 static_cast<void>(len);
66 auto rgs = GetTelem_pico_fb(msgBuffer);
70 if (rgs->counts() !=
nullptr)
73 for(flatbuffers::Vector<int64_t>::const_iterator
it = rgs->counts()->begin();
it != rgs->counts()->end(); ++
it)
75 msg+= std::to_string(*
it);
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_TELEM
A telemetry recording.
Message type for resolving log messages with a f.b. builder.
flatbuffers::FlatBufferBuilder builder
Base class for logs consisting of a flatbuffer message.
The type of the input message.
messageT(std::vector< int64_t > &counts)
Construct from components.
Log entry recording CPU temperatures.
static const flatlogs::eventCodeT eventCode
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.
static const flatlogs::logPrioT defaultLevel