Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::MetricsLogType Class Reference
Inheritance diagram for duckdb::MetricsLogType:
Collaboration diagram for duckdb::MetricsLogType:

Public Member Functions

 MetricsLogType ()
 Construct the log type.
Public Member Functions inherited from duckdb::LogType
 LogType (const string &name_p, const LogLevel &level_p)
 Construct an unstructured type.
 LogType (const string &name_p, const LogLevel &level_p, LogicalType structured_type)
 Construct a structured type.

Static Public Member Functions

static LogicalType GetLogType ()
static string ConstructLogMessage (const MetricType &type, const Value &value)

Static Public Attributes

static constexpr const char * NAME = "Metrics"
static constexpr LogLevel LEVEL = LogLevel::LOG_INFO

Additional Inherited Members

Public Attributes inherited from duckdb::LogType
string name
LogLevel level
bool is_structured
LogicalType type

Constructor & Destructor Documentation

◆ MetricsLogType()

duckdb::MetricsLogType::MetricsLogType ( )

Construct the log type.

260834 : LogType(NAME, LEVEL, GetLogType()) {
260835}
LogType(const string &name_p, const LogLevel &level_p)
Construct an unstructured type.
Definition duckdb.hpp:39081
Here is the call graph for this function:

Member Function Documentation

◆ GetLogType()

LogicalType duckdb::MetricsLogType::GetLogType ( )
static
260837 {
260838 child_list_t<LogicalType> child_list = {
260839 {"metric", LogicalType::VARCHAR},
260840 {"value", LogicalType::VARCHAR},
260841 };
260842 return LogicalType::STRUCT(child_list);
260843}

◆ ConstructLogMessage()

string duckdb::MetricsLogType::ConstructLogMessage ( const MetricType & type,
const Value & value )
static
260845 {
260846 child_list_t<Value> child_list = {
260847 {"metric", EnumUtil::ToString(metric)},
260848 {"value", value.ToString()},
260849 };
260850 return Value::STRUCT(std::move(child_list)).ToString();
260851}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318
static DUCKDB_API Value STRUCT(child_list_t< Value > values)
Create a struct value with given list of entries.
Definition duckdb.cpp:132434

The documentation for this class was generated from the following files: