Rerun C++ SDK
Loading...
Searching...
No Matches
entry_kind.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/build/re_type_definitions/rerun/components/entry_kind.def.rs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 /// \private
13 template <typename T>
14 class NumericBuilder;
15
16 class Array;
17 class DataType;
18 class UInt8Type;
19 using UInt8Builder = NumericBuilder<UInt8Type>;
20} // namespace arrow
21
22namespace rerun::components {
23 /// **Component**: The kind of a catalog entry.
24 ///
25 /// The values match those of `rerun.cloud.v1alpha1.EntryKind`.
26 ///
27 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
28 ///
29 enum class EntryKind : uint8_t {
30
31 /// A dataset.
32 Dataset = 1,
33
34 /// A view over a dataset.
35 DatasetView = 2,
36
37 /// A table.
38 Table = 3,
39
40 /// A view over a table.
41 TableView = 4,
42
43 /// A dataset holding the blueprints of another entry.
45
46 /// A dataset holding the static assets shared by the segments of another dataset.
47 AssetDataset = 6,
48 };
49} // namespace rerun::components
50
51namespace rerun {
52 template <typename T>
53 struct Loggable;
54
55 /// \private
56 template <>
57 struct Loggable<components::EntryKind> {
58 static constexpr std::string_view ComponentType = "rerun.components.EntryKind";
59
60 /// Returns the arrow data type this type corresponds to.
61 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
62
63 /// Serializes an array of `rerun::components::EntryKind` into an arrow array.
64 static Result<std::shared_ptr<arrow::Array>> to_arrow(
65 const components::EntryKind* instances, size_t num_instances
66 );
67
68 /// Fills an arrow array builder with an array of this type.
69 static rerun::Error fill_arrow_array_builder(
70 arrow::UInt8Builder* builder, const components::EntryKind* elements, size_t num_elements
71 );
72 };
73} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:104
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:93
EntryKind
Component: The kind of a catalog entry.
Definition entry_kind.hpp:29
@ DatasetView
A view over a dataset.
@ AssetDataset
A dataset holding the static assets shared by the segments of another dataset.
@ TableView
A view over a table.
@ BlueprintDataset
A dataset holding the blueprints of another entry.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26