6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/channel_id.hpp"
10#include "../components/key_value_pairs.hpp"
11#include "../components/text.hpp"
12#include "../result.hpp"
37 std::optional<ComponentBatch>
id;
44 std::optional<ComponentBatch>
topic;
63 static constexpr const char ArchetypeName[] =
"rerun.archetypes.McapChannel";
101 .value_or_throw()) {}
117 return std::move(*
this);
126 return std::move(*
this);
136 return std::move(*
this);
145 return std::move(*
this);
159 return std::move(*
this);
172 return std::move(*
this);
182 return std::move(*
this);
193 return std::move(*
this);
217 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 channel within an MCAP file that defines how messages are structured and encoded.
Definition mcap_channel.hpp:32
McapChannel with_many_id(const Collection< rerun::components::ChannelId > &_id) &&
This method makes it possible to pack multiple id in a single component batch.
Definition mcap_channel.hpp:124
McapChannel with_many_metadata(const Collection< rerun::components::KeyValuePairs > &_metadata) &&
This method makes it possible to pack multiple metadata in a single component batch.
Definition mcap_channel.hpp:189
McapChannel with_topic(const rerun::components::Text &_topic) &&
The topic name that this channel publishes to.
Definition mcap_channel.hpp:134
McapChannel with_many_message_encoding(const Collection< rerun::components::Text > &_message_encoding) &&
This method makes it possible to pack multiple message_encoding in a single component batch.
Definition mcap_channel.hpp:166
static McapChannel clear_fields()
Clear all the fields of a McapChannel.
McapChannel with_message_encoding(const rerun::components::Text &_message_encoding) &&
The encoding format used for messages in this channel.
Definition mcap_channel.hpp:155
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition mcap_channel.hpp:63
McapChannel with_metadata(const rerun::components::KeyValuePairs &_metadata) &&
Additional metadata for this channel stored as key-value pairs.
Definition mcap_channel.hpp:179
McapChannel with_many_topic(const Collection< rerun::components::Text > &_topic) &&
This method makes it possible to pack multiple topic in a single component batch.
Definition mcap_channel.hpp:143
std::optional< ComponentBatch > metadata
Additional metadata for this channel stored as key-value pairs.
Definition mcap_channel.hpp:59
static McapChannel update_fields()
Update only some specific fields of a McapChannel.
Definition mcap_channel.hpp:104
static constexpr auto Descriptor_message_encoding
ComponentDescriptor for the message_encoding field.
Definition mcap_channel.hpp:74
std::optional< ComponentBatch > id
Unique identifier for this channel within the MCAP file.
Definition mcap_channel.hpp:37
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static constexpr auto Descriptor_topic
ComponentDescriptor for the topic field.
Definition mcap_channel.hpp:70
static constexpr auto Descriptor_id
ComponentDescriptor for the id field.
Definition mcap_channel.hpp:66
std::optional< ComponentBatch > message_encoding
The encoding format used for messages in this channel.
Definition mcap_channel.hpp:53
static constexpr auto Descriptor_metadata
ComponentDescriptor for the metadata field.
Definition mcap_channel.hpp:79
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
McapChannel with_id(const rerun::components::ChannelId &_id) &&
Unique identifier for this channel within the MCAP file.
Definition mcap_channel.hpp:115
std::optional< ComponentBatch > topic
The topic name that this channel publishes to.
Definition mcap_channel.hpp:44
Component: A 16-bit ID representing an MCAP channel.
Definition channel_id.hpp:16
Component: A map of string keys to string values.
Definition key_value_pairs.hpp:28
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:16