A search filter that maps vehicle database records to a specific 3D model file by matching make/model keywords and year ranges.
More...
|
| | VehicleSearchItem (const File &default_file) |
| | Constructs a search item that reads/writes its INI from the given file.
|
| void | getINI (INIFactory &factory) override |
| | Populates the given INI factory with the options managed by this interface.
|
| bool | isValid (const VehicleRecord &record) const |
| | Checks whether the given record matches this search item's criteria.
|
| uint04 | score (const VehicleRecord &record) const |
| | Computes a match score for the given record against this search item.
|
|
| INIInterface () |
| | Constructs an INIInterface with no default INI file.
|
| | INIInterface (const File &default_ini) |
| | Constructs an INIInterface with the specified default INI file.
|
|
virtual | ~INIInterface () |
| | Virtual destructor for safe polymorphic cleanup.
|
| virtual void | finishReadingINI (INIFactory &) |
| | Called after reading an INI file.
|
| virtual void | prepareForINI (INIFactory &) |
| | Called before reading or writing an INI file.
|
| virtual bool | readINIOptions () |
| | Reads INI options from the default INI file.
|
| virtual bool | readINIOptions (File &ini_file) |
| | Reads INI options from the specified INI file.
|
| virtual bool | saveINIOptions (bool multithead=false) |
| | Saves INI options to the default INI file.
|
| virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
| | Saves INI options to the specified INI file.
|
| void | setDefaultINIFile (const File &file) |
| | Sets the default INI file path used for reading and writing options.
|
| virtual void | writeToLog (const StringView &title, LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log with a title.
|
| virtual void | writeToLog (LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log.
|
|
|
uint04 | end_year = Constant<uint04>::Invalid |
| | Latest valid year (inclusive), or Invalid for no upper bound.
|
|
String | make_exclude_terms |
| | Keywords to exclude from make matching.
|
|
String | make_search_terms |
| | Keywords to match against vehicle make (space-separated).
|
|
String | model_exclude_terms |
| | Keywords to exclude from model matching.
|
|
File | model_file |
| | The 3D model file to use for matching vehicles.
|
|
String | model_search_terms |
| | Keywords to match against vehicle model (space-separated).
|
|
uint04 | start_year = Constant<uint04>::Invalid |
| | Earliest valid year (inclusive), or Invalid for no lower bound.
|
|
|
File | m_default_ini |
| | The default file path used for reading and writing INI options.
|
A search filter that maps vehicle database records to a specific 3D model file by matching make/model keywords and year ranges.
Definition at line 47 of file VehicleDatabase.h.
◆ VehicleSearchItem()
| VehicleSearchItem::VehicleSearchItem |
( |
const File & | default_file | ) |
|
|
inline |
◆ getINI()
| void VehicleSearchItem::getINI |
( |
INIFactory & | factory | ) |
|
|
overridevirtual |
Populates the given INI factory with the options managed by this interface.
- Parameters
-
| [in] | factory | The INI factory to populate with option definitions. |
Implements INIInterface.
◆ isValid()
| bool VehicleSearchItem::isValid |
( |
const VehicleRecord & | record | ) |
const |
Checks whether the given record matches this search item's criteria.
- Parameters
-
| [in] | record | The vehicle record to test. |
- Returns
- true if the record matches.
◆ score()
Computes a match score for the given record against this search item.
- Parameters
-
| [in] | record | The vehicle record to score. |
- Returns
- A score where higher values indicate better matches.
The documentation for this struct was generated from the following file: