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

Public Member Functions

template<>
DUCKDB_API bool Operation (string_t input, float &result, CastParameters &parameters)
template<>
DUCKDB_API bool Operation (string_t input, double &result, CastParameters &parameters)
template<>
bool Operation (string_t input, float &result, CastParameters &parameters)
template<>
bool Operation (string_t input, double &result, CastParameters &parameters)

Static Public Member Functions

template<class SRC, class DST>
static bool Operation (SRC input, DST &result, CastParameters &parameters)

Member Function Documentation

◆ Operation() [1/3]

template<class SRC, class DST>
bool duckdb::TryCastErrorMessageCommaSeparated::Operation ( SRC input,
DST & result,
CastParameters & parameters )
inlinestatic
31223 {
31224 throw TryCast::UnimplementedErrorMessage(GetTypeId<SRC>(), GetTypeId<DST>(), parameters);
31225 }
PhysicalType GetTypeId()
Returns the PhysicalType for the given type.
Definition duckdb.hpp:10381

◆ Operation() [2/3]

template<>
bool duckdb::TryCastErrorMessageCommaSeparated::Operation ( string_t input,
float & result,
CastParameters & parameters )
89630 {
89631 if (!TryDoubleCast<float>(input.GetData(), input.GetSize(), result, parameters.strict, ',')) {
89632 HandleCastError::AssignError(StringUtil::Format("Could not cast string to float: \"%s\"", input.GetString()),
89633 parameters);
89634 return false;
89635 }
89636 return true;
89637}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

◆ Operation() [3/3]

template<>
bool duckdb::TryCastErrorMessageCommaSeparated::Operation ( string_t input,
double & result,
CastParameters & parameters )
89640 {
89641 if (!TryDoubleCast<double>(input.GetData(), input.GetSize(), result, parameters.strict, ',')) {
89642 HandleCastError::AssignError(StringUtil::Format("Could not cast string to double: \"%s\"", input.GetString()),
89643 parameters);
89644 return false;
89645 }
89646 return true;
89647}

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