6#include "../datatypes/utf8.hpp"
7#include "../rerun_sdk_export.hpp"
8#include "../result.hpp"
50 const char* c_str()
const {
62 value = std::move(value_);
66 TextLogLevel(std::string value_) : value(std::move(value_)) {}
69 value = std::move(value_);
85 struct Loggable<components::TextLogLevel> {
86 static constexpr const char Name[] =
"rerun.components.TextLogLevel";
89 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
90 return Loggable<rerun::datatypes::Utf8>::arrow_datatype();
94 static Result<std::shared_ptr<arrow::Array>> to_arrow(
95 const components::TextLogLevel* instances,
size_t num_instances
97 if (num_instances == 0) {
98 return Loggable<rerun::datatypes::Utf8>::to_arrow(
nullptr, 0);
99 }
else if (instances ==
nullptr) {
101 ErrorCode::UnexpectedNullArgument,
102 "Passed array instances is null when num_elements> 0."
105 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:79
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Component: The severity level of a text log message.
Definition text_log_level.hpp:25
static RERUN_SDK_EXPORT const TextLogLevel Error
Designates very serious errors.
Definition text_log_level.hpp:33
static RERUN_SDK_EXPORT const TextLogLevel Debug
Designates lower priority information.
Definition text_log_level.hpp:42
static RERUN_SDK_EXPORT const TextLogLevel Info
Designates useful information.
Definition text_log_level.hpp:39
static RERUN_SDK_EXPORT const TextLogLevel Trace
Designates very low priority, often extremely verbose, information.
Definition text_log_level.hpp:45
static RERUN_SDK_EXPORT const TextLogLevel Critical
Designates catastrophic failures.
Definition text_log_level.hpp:30
TextLogLevel(const char *str)
Construct TextLogLevel from a null-terminated UTF8 string.
Definition text_log_level.hpp:48
static RERUN_SDK_EXPORT const TextLogLevel Warning
Designates hazardous situations.
Definition text_log_level.hpp:36
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21