/workspaces/astro/sol3-sdk/cpp/sol3/core/any_message_view.h Source File
|
Space-ng SDK
|
any_message_view.h
Go to the documentation of this file.
Definition: any_message_view.h:24
void reset()
flatbuffers::span< uint8_t const > messageSpan() const
header and payload span
bool valid() const
void update(SeqRingSlotView const &slot_view, MessageSchema schema, std::chrono::steady_clock::duration time_out)
TTableType const & payload() const
Definition: any_message_view.h:56
flatbuffers::span< uint8_t const > headerSpan() const
Size-prefixed header buffer.
uint64_t seq() const
MessageSchema const & schema() const
flatbuffers::span< uint8_t const > payloadSpan() const
Non-size-prefixed payload buffer.
void setCached(bool cached)
bool cached() const
bool hasValue() const
True if valid() and both header and payload buffers are present.
std::string payloadToJson(JsonFormat format) const
void payloadToJson(JsonFormat format, std::string &out_json) const
msg::MessageHeader const & header() const
Definition: message_schema.h:12
A read only view of a specific seq ring buffer slot.
Definition: seq_ring.h:73
Definition: any_message_input.h:15
std::string stringFromFileIdentifier(uint32_t v)
Converts a file identifier to a printable 4-character string.
void toJson(AnyMessageView const &view, std::string &out_json, JsonFormat format=JsonFormat::SINGLE_LINE)
@ SINGLE_LINE
Generated by