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::DefaultCoordinateSystemGenerator Class Reference
Inheritance diagram for duckdb::DefaultCoordinateSystemGenerator:
Collaboration diagram for duckdb::DefaultCoordinateSystemGenerator:

Public Member Functions

 DefaultCoordinateSystemGenerator (Catalog &catalog, SchemaCatalogEntry &schema)
 
unique_ptr< CatalogEntryCreateDefaultEntry (ClientContext &context, const string &entry_name) override
 Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.
 
vector< string > GetDefaultEntries () override
 Get a list of all default entries in the generator.
 
- Public Member Functions inherited from duckdb::DefaultGenerator
 DefaultGenerator (Catalog &catalog)
 
virtual unique_ptr< CatalogEntryCreateDefaultEntry (CatalogTransaction transaction, const string &entry_name)
 
virtual bool LockDuringCreate () const
 

Public Attributes

SchemaCatalogEntryschema
 
- Public Attributes inherited from duckdb::DefaultGenerator
Catalogcatalog
 
atomic< bool > created_all_entries
 

Constructor & Destructor Documentation

◆ DefaultCoordinateSystemGenerator()

duckdb::DefaultCoordinateSystemGenerator::DefaultCoordinateSystemGenerator ( Catalog catalog,
SchemaCatalogEntry schema 
)
23714 : DefaultGenerator(catalog), schema(schema) {
23715}

Member Function Documentation

◆ CreateDefaultEntry()

unique_ptr< CatalogEntry > duckdb::DefaultCoordinateSystemGenerator::CreateDefaultEntry ( ClientContext context,
const string &  entry_name 
)
overridevirtual

Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.

Reimplemented from duckdb::DefaultGenerator.

23718 {
23719 if (schema.name != DEFAULT_SCHEMA) {
23720 return nullptr;
23721 }
23722
23723 for (const auto &crs_definition : DEFAULT_CRS_DEFINITIONS) {
23724 if (entry_name == crs_definition.name) {
23725 CreateCoordinateSystemInfo info(crs_definition.name, crs_definition.auth_code, crs_definition.srid,
23726 crs_definition.projjson, crs_definition.wkt2_2019);
23727
23728 auto result = make_uniq<CoordinateSystemCatalogEntry>(catalog, schema, info);
23729 return std::move(result);
23730 }
23731 }
23732
23733 return nullptr;
23734}
string name
The name of the entry.
Definition duckdb.hpp:6311

◆ GetDefaultEntries()

vector< string > duckdb::DefaultCoordinateSystemGenerator::GetDefaultEntries ( )
overridevirtual

Get a list of all default entries in the generator.

Implements duckdb::DefaultGenerator.

23736 {
23737 if (schema.name != DEFAULT_SCHEMA) {
23738 return {};
23739 }
23740
23741 vector<string> entries;
23742 for (const auto &crs_definition : DEFAULT_CRS_DEFINITIONS) {
23743 entries.push_back(crs_definition.name);
23744 }
23745 return entries;
23746}

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