6#include "../component_descriptor.hpp"
7#include "../datatypes/utf8.hpp"
8#include "../rerun_sdk_export.hpp"
9#include "../result.hpp"
51 const char* c_str()
const {
63 value = std::move(value_);
67 TextLogLevel(std::string value_) : value(std::move(value_)) {}
70 value = std::move(value_);
86 struct Loggable<components::TextLogLevel> {
87 static constexpr ComponentDescriptor Descriptor =
"rerun.components.TextLogLevel";
90 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
91 return Loggable<rerun::datatypes::Utf8>::arrow_datatype();
95 static Result<std::shared_ptr<arrow::Array>> to_arrow(
96 const components::TextLogLevel* instances,
size_t num_instances
98 if (num_instances == 0) {
99 return Loggable<rerun::datatypes::Utf8>::to_arrow(
nullptr, 0);
100 }
else if (instances ==
nullptr) {
102 ErrorCode::UnexpectedNullArgument,
103 "Passed array instances is null when num_elements> 0."
106 return Loggable<rerun::datatypes::Utf8>::to_arrow(&instances->value, num_instances);
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:80
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Component: The severity level of a text log message.
Definition text_log_level.hpp:26
static RERUN_SDK_EXPORT const TextLogLevel Error
Designates very serious errors.
Definition text_log_level.hpp:34
static RERUN_SDK_EXPORT const TextLogLevel Debug
Designates lower priority information.
Definition text_log_level.hpp:43
static RERUN_SDK_EXPORT const TextLogLevel Info
Designates useful information.
Definition text_log_level.hpp:40
static RERUN_SDK_EXPORT const TextLogLevel Trace
Designates very low priority, often extremely verbose, information.
Definition text_log_level.hpp:46
static RERUN_SDK_EXPORT const TextLogLevel Critical
Designates catastrophic failures.
Definition text_log_level.hpp:31
TextLogLevel(const char *str)
Construct TextLogLevel from a null-terminated UTF8 string.
Definition text_log_level.hpp:49
static RERUN_SDK_EXPORT const TextLogLevel Warning
Designates hazardous situations.
Definition text_log_level.hpp:37
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:22