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::VariantBooleanConversion Struct Reference

----— Primitive Conversion Methods ----— More...

Public Types

using type = bool

Static Public Member Functions

static bool Convert (const VariantLogicalType type_id, uint32_t byte_offset, const_data_ptr_t value, bool &ret, const EmptyConversionPayloadFromVariant &payload, string &error)

Detailed Description

----— Primitive Conversion Methods ----—

bool

Member Function Documentation

◆ Convert()

bool duckdb::VariantBooleanConversion::Convert ( const VariantLogicalType type_id,
uint32_t byte_offset,
const_data_ptr_t value,
bool & ret,
const EmptyConversionPayloadFromVariant & payload,
string & error )
inlinestatic
216413 {
216414 if (type_id != VariantLogicalType::BOOL_FALSE && type_id != VariantLogicalType::BOOL_TRUE) {
216415 if (error.empty()) {
216416 error = StringUtil::Format("Can't convert from VARIANT(%s)", EnumUtil::ToString(type_id));
216417 }
216418 return false;
216419 }
216420 ret = type_id == VariantLogicalType::BOOL_TRUE;
216421 return true;
216422 }
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

The documentation for this struct was generated from the following file: