![]() |
VR-Forces Developer's Guide
|
Reader and indexed container for SIDC items.

Classes | |
| struct | SidcItem |
| struct | SidcThumbnail |
Public Member Functions | |
| virtual bool | loadFromDefault (std::string *errorMessage=nullptr) |
| virtual bool | loadFromFile (const std::string &filename, std::string *errorMessage=nullptr) |
| virtual void | clear () |
| const std::vector< SidcItem > & | items () const |
| virtual const SidcItem * | findByName (const std::string &name) const |
| virtual const SidcItem * | findByTitle (const std::string &title) const |
| virtual std::vector< const SidcItem * > | findByCategory (const std::string &category) const |
| virtual std::vector< const SidcItem * > | findByTag (const std::string &tag) const |
| virtual std::vector< const SidcItem * > | findByFormat (const std::string &format) const |
Protected Types | |
| using | DtIndexList = std::vector< std::size_t > |
Protected Member Functions | |
| virtual void | buildIndexes () |
| virtual std::vector< const SidcItem * > | findFromIndex (const std::unordered_map< std::string, DtIndexList > &index, const std::string &key) const |
Protected Attributes | |
| std::vector< SidcItem > | myItems |
| std::unordered_map < std::string, std::size_t > | myItemsByName |
| std::unordered_map < std::string, std::size_t > | myItemsByTitle |
| std::unordered_map < std::string, DtIndexList > | myItemsByCategory |
| std::unordered_map < std::string, DtIndexList > | myItemsByTag |
| std::unordered_map < std::string, DtIndexList > | myItemsByFormat |
|
protected |
|
virtual |
Loads from default settings\enumerations\sidc.json file.
|
virtual |
Load and index all SIDC items from a JSON file.
|
virtual |
Remove all loaded items and indexes.
| const std::vector<SidcItem>& makVrf::DtSidcReader::items | ( | ) | const |
Get all loaded items.
|
virtual |
Find a single item by SIDC name/code.
|
virtual |
Find a single item by title.
|
virtual |
Find all items in a category.
|
virtual |
Find all items containing a tag.
|
virtual |
Find all items supporting a format.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |