6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/blob.hpp"
10#include "../result.hpp"
38 std::optional<ComponentBatch>
data;
42 static constexpr const char ArchetypeName[] =
"rerun.archetypes.McapMessage";
76 return std::move(*
this);
85 return std::move(*
this);
109 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: The binary payload of a single MCAP message, without metadata.
Definition mcap_message.hpp:31
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition mcap_message.hpp:42
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
McapMessage 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_message.hpp:83
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
McapMessage with_data(const rerun::components::Blob &_data) &&
The raw message payload as a binary blob.
Definition mcap_message.hpp:74
std::optional< ComponentBatch > data
The raw message payload as a binary blob.
Definition mcap_message.hpp:38
static McapMessage clear_fields()
Clear all the fields of a McapMessage.
static McapMessage update_fields()
Update only some specific fields of a McapMessage.
Definition mcap_message.hpp:61
static constexpr auto Descriptor_data
ComponentDescriptor for the data field.
Definition mcap_message.hpp:45
Component: A binary blob of data.
Definition blob.hpp:16