/workspaces/astro/sol3-sdk/cpp/sol3/core/message_schema.h Source File
|
Space-ng SDK
|
message_schema.h
Go to the documentation of this file.
Definition: message_schema.h:12
reflection::Schema const * table() const
uint32_t fileIdentifier() const
Returns the flatbuffer file identifier, or 0 if not set.
void evolve(MessageSchema const &new_schema)
std::string fileIdentifierString() const
Returns the flatbuffer file identifier string, or empty if not set.
MessageSchema()=default
std::string conformsTo(MessageSchema const &previous_schema) const
MessageSchema(flatbuffers::span< uint8_t const > schema_buffer, EvolutionPolicy policy)
flatbuffers::span< uint8_t const > schemaBufferSpan() const
Definition: message_schema.h:30
bool verify(flatbuffers::span< uint8_t const > buffer) const
flatbuffers::Parser const & parser(JsonFormat format=JsonFormat::SINGLE_LINE) const
std::string toJson(flatbuffers::span< uint8_t const > buffer, JsonFormat format=JsonFormat::SINGLE_LINE) const
Convert a verified buffer to JSON using this schema.
bool operator==(MessageSchema const &schema) const
Tests if the schema is byte for byte equivalent to the current schema.
bool operator!=(MessageSchema const &schema) const
Definition: message_schema.h:53
EvolutionPolicy
How should this schema evolve.
Definition: message_schema.h:15
@ FORWARDS_COMPATIBLE
Definition: any_message_input.h:15
@ SINGLE_LINE
Generated by