API Documentation
Loading...
Searching...
No Matches
VehicleDatabase.h
Go to the documentation of this file.
1#pragma once
3#include "Base/Headers/File.h"
7namespace NDEVR
8{
9 class VehicleDatabase;
11 {
12 public:
13 VehicleRecord(uint04 index, const VehicleDatabase* database);
14 const String& make() const;
15 const String& model() const;
16 const uint04& year() const;
17 const fltp08& curbWeight() const;
19 File modelFile() const;
20 protected:
23 };
71}
#define VEHICLE_DATABASE_API
Definition DLLInfo.h:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
Contains methods for easily reading and writing to an INI file including efficient casting,...
Definition INIReader.h:68
Contains methods for easily reading and writing to an INI file including.
Definition INIInterface.h:45
The core String class for the NDEVR API.
Definition String.h:69
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
Definition VehicleDatabase.h:42
Buffer< String > getModels(const String &make=String(), uint04 year=Constant< uint04 >::Invalid) const
void readDatabaseFromFolder(const File &folder)
VehicleRecord record(uint04 i) const
Definition VehicleDatabase.h:53
Buffer< fltp08 > curb_weight
Definition VehicleDatabase.h:68
Buffer< fltp08 > overall_height
Definition VehicleDatabase.h:66
static uint04 ParseYear(const File &f)
Buffer< String > vehicle_makes
Definition VehicleDatabase.h:61
void readSearchTermsFromFolder(const File &folder)
Buffer< fltp08 > wheel_base
Definition VehicleDatabase.h:67
uint04 recordCount() const
Definition VehicleDatabase.h:52
Buffer< fltp08 > overall_width
Definition VehicleDatabase.h:65
Buffer< String > vehicle_models
Definition VehicleDatabase.h:62
Buffer< String > getMakes(const String &model=String(), uint04 year=Constant< uint04 >::Invalid) const
Buffer< uint04 > getYears(const String &make=String(), const String &model=String()) const
Buffer< VehicleSearchItem > file_search_terms
Definition VehicleDatabase.h:69
Buffer< uint04 > vehicle_year
Definition VehicleDatabase.h:63
static VehicleDatabase & DefaultDatabase()
void readFromDBF(const File &f)
VehicleDatabase()
Definition VehicleDatabase.h:44
bool recordFilterPass(uint04 record_number, const String &make, const String &model, uint04 year) const
Buffer< fltp08 > overall_length
Definition VehicleDatabase.h:64
Buffer< uint04 > filterModels(const String &make, const String &model, uint04 year) const
Definition VehicleDatabase.h:11
const uint04 & year() const
const Vector< 3, fltp08 > dimensions() const
VehicleRecord(uint04 index, const VehicleDatabase *database)
const fltp08 & curbWeight() const
const String & model() const
const String & make() const
File modelFile() const
const uint04 m_index
Definition VehicleDatabase.h:22
const VehicleDatabase *const m_database
Definition VehicleDatabase.h:21
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
Definition VehicleDatabase.h:25
String make_exclude_terms
Definition VehicleDatabase.h:28
File model_file
Definition VehicleDatabase.h:30
void getINI(INIFactory &factory) override
uint04 score(const VehicleRecord &record) const
String make_search_terms
Definition VehicleDatabase.h:26
String model_search_terms
Definition VehicleDatabase.h:27
bool isValid(const VehicleRecord &record) const
String model_exclude_terms
Definition VehicleDatabase.h:29
VehicleSearchItem(const File &default_file)
Definition VehicleDatabase.h:34