10#ifndef logger_types_telem_telvane_hpp
11#define logger_types_telem_telvane_hpp
51 auto fp =
CreateTelem_telvane_fb(
builder,
secz,
encz,
secx,
encx,
secy,
ency,
sech,
ench,
secv,
encv);
71 static_cast<void>(len);
75 std::string msg =
"[telvane] ";
78 msg += std::to_string(fbs->secz()) +
" ";
81 msg += std::to_string(fbs->encz()) +
" ";
84 msg += std::to_string(fbs->secx()) +
" ";
87 msg += std::to_string(fbs->encx()) +
" ";
90 msg += std::to_string(fbs->secy()) +
" ";
93 msg += std::to_string(fbs->ency()) +
" ";
96 msg += std::to_string(fbs->sech()) +
" ";
99 msg += std::to_string(fbs->ench()) +
" ";
102 msg += std::to_string(fbs->secv()) +
" ";
105 msg += std::to_string(fbs->encv()) +
" ";
111 static double secz(
void * msgBuffer )
118 static double encz(
void * msgBuffer )
125 static double secx(
void * msgBuffer )
132 static double encx(
void * msgBuffer )
139 static double secy(
void * msgBuffer )
146 static double ency(
void * msgBuffer )
153 static double sech(
void * msgBuffer )
160 static double ench(
void * msgBuffer )
167 static double secv(
void * msgBuffer )
174 static double encv(
void * msgBuffer )
200 std::cerr <<
"No member " << member <<
" in telem_telvane\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 TELEM_TELVANE
const MagAOX::logger::Telem_telvane_fb * GetTelem_telvane_fb(const void *buf)
inline ::flatbuffers::Offset< Telem_telvane_fb > CreateTelem_telvane_fb(::flatbuffers::FlatBufferBuilder &_fbb, double secz=0.0, double encz=0.0, double secx=0.0, double encx=0.0, double secy=0.0, double ency=0.0, double sech=0.0, double ench=0.0, double secv=0.0, double encv=0.0)
bool VerifyTelem_telvane_fbBuffer(::flatbuffers::Verifier &verifier)
static constexpr 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(const double &secz, const double &encz, const double &secx, const double &encx, const double &secy, const double &ency, const double &sech, const double &ench, const double &secv, const double &encv)
Construct from components.
Log entry recording the build-time git state.
static double secx(void *msgBuffer)
static double ench(void *msgBuffer)
static double secy(void *msgBuffer)
static double encx(void *msgBuffer)
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static double secv(void *msgBuffer)
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
static double ency(void *msgBuffer)
static const flatlogs::eventCodeT eventCode
The event code.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.
static double sech(void *msgBuffer)
static logMetaDetail getAccessor(const std::string &member)
Get the logMetaDetail for a member by name.
static double secz(void *msgBuffer)
static double encv(void *msgBuffer)
static double encz(void *msgBuffer)
static const flatlogs::logPrioT defaultLevel
The default level.