Rerun C++ SDK
Loading...
Searching...
No Matches
included_content.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/components/included_content.fbs".
3
4#pragma once
5
6#include "../../datatypes/entity_path.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11#include <string>
12#include <utility>
13
14namespace rerun::blueprint::components {
15 /// **Component**: All the contents in the container.
17 /// List of the contents by EntityPath.
18 ///
19 /// This must be a path in the blueprint store.
20 /// Typically structure as `<blueprint_registry>/<uuid>`.
22
23 public:
24 IncludedContent() = default;
25
26 IncludedContent(rerun::datatypes::EntityPath contents_) : contents(std::move(contents_)) {}
27
28 IncludedContent& operator=(rerun::datatypes::EntityPath contents_) {
29 contents = std::move(contents_);
30 return *this;
31 }
32
33 IncludedContent(std::string path_) : contents(std::move(path_)) {}
34
35 IncludedContent& operator=(std::string path_) {
36 contents = std::move(path_);
37 return *this;
38 }
39
40 /// Cast to the underlying EntityPath datatype
42 return contents;
43 }
44 };
45} // namespace rerun::blueprint::components
46
47namespace rerun {
48 static_assert(
50 );
51
52 /// \private
53 template <>
54 struct Loggable<blueprint::components::IncludedContent> {
55 static constexpr const char Name[] = "rerun.blueprint.components.IncludedContent";
56
57 /// Returns the arrow data type this type corresponds to.
58 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
60 }
61
62 /// Serializes an array of `rerun::blueprint:: components::IncludedContent` into an arrow array.
63 static Result<std::shared_ptr<arrow::Array>> to_arrow(
64 const blueprint::components::IncludedContent* instances, size_t num_instances
65 ) {
66 return Loggable<rerun::datatypes::EntityPath>::to_arrow(
67 &instances->contents,
68 num_instances
69 );
70 }
71 };
72} // namespace rerun
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: All the contents in the container.
Definition included_content.hpp:16
rerun::datatypes::EntityPath contents
List of the contents by EntityPath.
Definition included_content.hpp:21
Datatype: A path to an entity in the ChunkStore.
Definition entity_path.hpp:21