6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/text.hpp"
10#include "../result.hpp"
53 std::optional<ComponentBatch>
status;
57 static constexpr const char ArchetypeName[] =
"rerun.archetypes.Status";
82 return std::move(*
this);
91 return std::move(*
this);
115 template <
typename T>
120 struct AsComponents<archetypes::
Status> {
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:81
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
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 status update, representing a change in the status of an entity.
Definition status.hpp:51
static Status update_fields()
Update only some specific fields of a Status.
Definition status.hpp:72
std::optional< ComponentBatch > status
The new status value. A null status is ignored, it can be used to partially update a multi-instance s...
Definition status.hpp:53
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Status with_many_status(const Collection< rerun::components::Text > &_status) &&
This method makes it possible to pack multiple status in a single component batch.
Definition status.hpp:89
Status with_status(const rerun::components::Text &_status) &&
The new status value. A null status is ignored, it can be used to partially update a multi-instance s...
Definition status.hpp:80
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition status.hpp:57
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
static Status clear_fields()
Clear all the fields of a Status.
static constexpr auto Descriptor_status
ComponentDescriptor for the status field.
Definition status.hpp:60
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:16