6#include "../collection.hpp" 
    7#include "../component_batch.hpp" 
    8#include "../component_column.hpp" 
    9#include "../components/blob.hpp" 
   10#include "../components/schema_id.hpp" 
   11#include "../components/text.hpp" 
   12#include "../result.hpp" 
   38        std::optional<ComponentBatch> 
id;
 
   44        std::optional<ComponentBatch> 
name;
 
   62        std::optional<ComponentBatch> 
data;
 
   66        static constexpr const char ArchetypeName[] = 
"rerun.archetypes.McapSchema";
 
  118            return std::move(*
this);
 
  127            return std::move(*
this);
 
  136            return std::move(*
this);
 
  145            return std::move(*
this);
 
  159            return std::move(*
this);
 
  169            return std::move(*
this);
 
  180            return std::move(*
this);
 
  189            return std::move(*
this);
 
  213    template <
typename T>
 
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
 
A class for representing either a usable value, or an error.
Definition result.hpp:14
 
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:76
 
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
 
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
 
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
 
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
 
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
 
Archetype: A schema definition that describes the structure of messages in an MCAP file.
Definition mcap_schema.hpp:33
 
static constexpr auto Descriptor_encoding
ComponentDescriptor for the encoding field.
Definition mcap_schema.hpp:77
 
static constexpr auto Descriptor_name
ComponentDescriptor for the name field.
Definition mcap_schema.hpp:73
 
McapSchema with_many_name(const Collection< rerun::components::Text > &_name) &&
This method makes it possible to pack multiple name in a single component batch.
Definition mcap_schema.hpp:143
 
static constexpr auto Descriptor_data
ComponentDescriptor for the data field.
Definition mcap_schema.hpp:81
 
McapSchema with_encoding(const rerun::components::Text &_encoding) &&
The schema definition format used to describe the message structure.
Definition mcap_schema.hpp:156
 
static constexpr auto Descriptor_id
ComponentDescriptor for the id field.
Definition mcap_schema.hpp:69
 
std::optional< ComponentBatch > data
The schema definition content as binary data.
Definition mcap_schema.hpp:62
 
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
 
McapSchema with_id(const rerun::components::SchemaId &_id) &&
Unique identifier for this schema within the MCAP file.
Definition mcap_schema.hpp:116
 
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition mcap_schema.hpp:66
 
static McapSchema update_fields()
Update only some specific fields of a McapSchema.
Definition mcap_schema.hpp:105
 
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
 
std::optional< ComponentBatch > name
Human-readable name identifying this schema.
Definition mcap_schema.hpp:44
 
McapSchema with_data(const rerun::components::Blob &_data) &&
The schema definition content as binary data.
Definition mcap_schema.hpp:178
 
McapSchema with_name(const rerun::components::Text &_name) &&
Human-readable name identifying this schema.
Definition mcap_schema.hpp:134
 
McapSchema with_many_encoding(const Collection< rerun::components::Text > &_encoding) &&
This method makes it possible to pack multiple encoding in a single component batch.
Definition mcap_schema.hpp:166
 
static McapSchema clear_fields()
Clear all the fields of a McapSchema.
 
McapSchema with_many_id(const Collection< rerun::components::SchemaId > &_id) &&
This method makes it possible to pack multiple id in a single component batch.
Definition mcap_schema.hpp:125
 
McapSchema with_many_data(const Collection< rerun::components::Blob > &_data) &&
This method makes it possible to pack multiple data in a single component batch.
Definition mcap_schema.hpp:187
 
std::optional< ComponentBatch > encoding
The schema definition format used to describe the message structure.
Definition mcap_schema.hpp:54
 
std::optional< ComponentBatch > id
Unique identifier for this schema within the MCAP file.
Definition mcap_schema.hpp:38
 
Component: A binary blob of data.
Definition blob.hpp:16
 
Component: A 16-bit unique identifier for a schema within the MCAP file.
Definition schema_id.hpp:14
 
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:16