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