A database of vehicle specifications (make, model, year, dimensions, weight) loaded from DBF files and INI-based search term mappings, used for vehicle selection and placement.
More...
|
|
| VehicleDatabase () |
| | Default constructor.
|
| Buffer< uint04 > | filterModels (const String &make, const String &model, uint04 year) const |
| | Returns indices of records matching the given make, model, and year criteria.
|
| Buffer< String > | getMakes (const String &model=String(), uint04 year=Constant< uint04 >::Invalid) const |
| | Returns all unique makes, optionally filtered by model and year.
|
| Buffer< String > | getModels (const String &make=String(), uint04 year=Constant< uint04 >::Invalid) const |
| | Returns all unique models, optionally filtered by make and year.
|
| Buffer< uint04 > | getYears (const String &make=String(), const String &model=String()) const |
| | Returns all unique years, optionally filtered by make and model.
|
| void | readDatabaseFromFolder (const File &folder) |
| | Reads vehicle data and search terms from DBF and INI files in the given folder.
|
| void | readFromDBF (const File &f) |
| | Reads vehicle records from a single DBF file.
|
| void | readSearchTermsFromFolder (const File &folder) |
| | Reads vehicle-to-model search term mappings from INI files in the given folder.
|
| VehicleRecord | record (uint04 i) const |
| | Returns a record accessor for the given index.
|
| uint04 | recordCount () const |
| | Returns the total number of vehicle records.
|
| bool | recordFilterPass (uint04 record_number, const String &make, const String &model, uint04 year) const |
| | Checks whether a specific record passes the given filter criteria.
|
|
|
Buffer< fltp08 > | curb_weight |
| | Vehicle curb weights, one per record.
|
|
Buffer< VehicleSearchItem > | file_search_terms |
| | Search term mappings for associating records to 3D model files.
|
|
Buffer< fltp08 > | overall_height |
| | Vehicle overall heights, one per record.
|
|
Buffer< fltp08 > | overall_length |
| | Vehicle overall lengths, one per record.
|
|
Buffer< fltp08 > | overall_width |
| | Vehicle overall widths, one per record.
|
|
Buffer< String > | vehicle_makes |
| | Vehicle manufacturer names, one per record.
|
|
Buffer< String > | vehicle_models |
| | Vehicle model names, one per record.
|
|
Buffer< uint04 > | vehicle_year |
| | Vehicle model years, one per record.
|
|
Buffer< fltp08 > | wheel_base |
| | Vehicle wheel bases, one per record.
|
A database of vehicle specifications (make, model, year, dimensions, weight) loaded from DBF files and INI-based search term mappings, used for vehicle selection and placement.
Definition at line 76 of file VehicleDatabase.h.
◆ DefaultDatabase()
◆ filterModels()
Returns indices of records matching the given make, model, and year criteria.
- Parameters
-
| [in] | make | Make search string (empty matches all). |
| [in] | model | Model search string (empty matches all). |
| [in] | year | Year filter (Invalid matches all). |
- Returns
- Buffer of matching record indices.
◆ getMakes()
Returns all unique makes, optionally filtered by model and year.
- Parameters
-
| [in] | model | Optional model filter. |
| [in] | year | Optional year filter. |
- Returns
- Buffer of unique make strings.
◆ getModels()
Returns all unique models, optionally filtered by make and year.
- Parameters
-
| [in] | make | Optional make filter. |
| [in] | year | Optional year filter. |
- Returns
- Buffer of unique model strings.
◆ getYears()
Returns all unique years, optionally filtered by make and model.
- Parameters
-
| [in] | make | Optional make filter. |
| [in] | model | Optional model filter. |
- Returns
- Buffer of unique year values.
◆ ParseYear()
| uint04 VehicleDatabase::ParseYear |
( |
const File & | f | ) |
|
|
static |
Parses a year value from a file name.
- Parameters
-
| [in] | f | The file whose name contains a year. |
- Returns
- The parsed year, or Invalid if not found.
◆ readDatabaseFromFolder()
| void VehicleDatabase::readDatabaseFromFolder |
( |
const File & | folder | ) |
|
Reads vehicle data and search terms from DBF and INI files in the given folder.
- Parameters
-
| [in] | folder | The folder containing database files. |
◆ readFromDBF()
| void VehicleDatabase::readFromDBF |
( |
const File & | f | ) |
|
Reads vehicle records from a single DBF file.
- Parameters
-
| [in] | f | The DBF file to parse. |
◆ readSearchTermsFromFolder()
| void VehicleDatabase::readSearchTermsFromFolder |
( |
const File & | folder | ) |
|
Reads vehicle-to-model search term mappings from INI files in the given folder.
- Parameters
-
| [in] | folder | The folder containing search term INI files. |
◆ record()
◆ recordCount()
| uint04 VehicleDatabase::recordCount |
( |
| ) |
const |
|
inline |
◆ recordFilterPass()
| bool VehicleDatabase::recordFilterPass |
( |
uint04 | record_number, |
|
|
const String & | make, |
|
|
const String & | model, |
|
|
uint04 | year ) const |
Checks whether a specific record passes the given filter criteria.
- Parameters
-
| [in] | record_number | The record index to test. |
| [in] | make | Make search string. |
| [in] | model | Model search string. |
| [in] | year | Year filter. |
- Returns
- true if the record passes the filter.
The documentation for this class was generated from the following file: