6#include "../component_descriptor.hpp"
7#include "../result.hpp"
27 Utf8(
const char* utf8_) : value(utf8_) {}
45 Utf8(std::string value_) : value(std::move(value_)) {}
48 value = std::move(value_);
60 struct Loggable<datatypes::Utf8> {
61 static constexpr ComponentDescriptor Descriptor =
"rerun.datatypes.Utf8";
64 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
67 static Result<std::shared_ptr<arrow::Array>> to_arrow(
68 const datatypes::Utf8* instances,
size_t num_instances
73 arrow::StringBuilder* builder,
const datatypes::Utf8* elements,
size_t num_elements
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: A string of text, encoded as UTF-8.
Definition utf8.hpp:22
Utf8(const char *utf8_)
Construct from a C string.
Definition utf8.hpp:27
Utf8 & operator=(const char *utf8_)
Explicit copy assignment from a C string to avoid ambiguity in some cases.
Definition utf8.hpp:30
const char * c_str() const
Returns a pointer to the underlying C string.
Definition utf8.hpp:36