Rerun C++ SDK
Loading...
Searching...
No Matches
utf8pair.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/datatypes/utf8_pair.fbs".
3
4#pragma once
5
6#include "../component_descriptor.hpp"
7#include "../result.hpp"
8#include "utf8.hpp"
9
10#include <cstdint>
11#include <memory>
12
13namespace arrow {
14 class Array;
15 class DataType;
16 class StructBuilder;
17} // namespace arrow
18
19namespace rerun::datatypes {
20 /// **Datatype**: Stores a tuple of UTF-8 strings.
21 struct Utf8Pair {
22 /// The first string.
24
25 /// The second string.
27
28 public: // START of extensions from utf8pair_ext.cpp:
29 /// Creates a string pair.
31 : first(std::move(first_)), second(std::move(second_)) {}
32
33 // END of extensions from utf8pair_ext.cpp, start of generated code:
34
35 public:
36 Utf8Pair() = default;
37 };
38} // namespace rerun::datatypes
39
40namespace rerun {
41 template <typename T>
42 struct Loggable;
43
44 /// \private
45 template <>
46 struct Loggable<datatypes::Utf8Pair> {
47 static constexpr ComponentDescriptor Descriptor = "rerun.datatypes.Utf8Pair";
48
49 /// Returns the arrow data type this type corresponds to.
50 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
51
52 /// Serializes an array of `rerun::datatypes::Utf8Pair` into an arrow array.
53 static Result<std::shared_ptr<arrow::Array>> to_arrow(
54 const datatypes::Utf8Pair* instances, size_t num_instances
55 );
56
57 /// Fills an arrow array builder with an array of this type.
58 static rerun::Error fill_arrow_array_builder(
59 arrow::StructBuilder* builder, const datatypes::Utf8Pair* elements, size_t num_elements
60 );
61 };
62} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:83
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: Stores a tuple of UTF-8 strings.
Definition utf8pair.hpp:21
rerun::datatypes::Utf8 first
The first string.
Definition utf8pair.hpp:23
Utf8Pair(rerun::datatypes::Utf8 first_, rerun::datatypes::Utf8 second_)
Creates a string pair.
Definition utf8pair.hpp:30
rerun::datatypes::Utf8 second
The second string.
Definition utf8pair.hpp:26
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:22