6#include "../../blueprint/datatypes/utf8list.hpp"
7#include "../../collection.hpp"
8#include "../../result.hpp"
15namespace rerun::blueprint::components {
87 struct Loggable<blueprint::components::VisualizerOverrides> {
88 static constexpr const char Name[] =
"rerun.blueprint.components.VisualizerOverrides";
91 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
96 static Result<std::shared_ptr<arrow::Array>> to_arrow(
97 const blueprint::components::VisualizerOverrides* instances,
size_t num_instances
99 if (num_instances == 0) {
100 return Loggable<rerun::blueprint::datatypes::Utf8List>::to_arrow(
nullptr, 0);
101 }
else if (instances ==
nullptr) {
103 ErrorCode::UnexpectedNullArgument,
104 "Passed array instances is null when num_elements> 0."
107 return Loggable<rerun::blueprint::datatypes::Utf8List>::to_arrow(
108 &instances->visualizers,
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: Override the visualizers for an entity.
Definition visualizer_overrides.hpp:26
rerun::blueprint::datatypes::Utf8List visualizers
Names of the visualizers that should be active.
Definition visualizer_overrides.hpp:51
Datatype: A list of strings of text, encoded as UTF-8.
Definition utf8list.hpp:22