Scanner to find the unique IDs of scenarios.
More...
|
| | ScenarioScanner () |
| | Initialise.
|
| |
| void | Scan (bool rescan) |
| | Scan, but only if it's needed.
|
| |
| bool | AddFile (const std::string &filename, size_t, const std::string &) override |
| | Add a file with the given filename.
|
| |
|
| bool | scanned |
| | Whether we've already scanned.
|
| |
|
|
virtual | ~FileScanner ()=default |
| | Destruct the proper one...
|
| |
| uint | Scan (std::string_view extension, Subdirectory sd, bool tars=true, bool recursive=true) |
| | Scan for files with the given extension in the given search path.
|
| |
| uint | Scan (std::string_view extension, const std::string &directory, bool recursive=true) |
| | Scan for files with the given extension in the given search path.
|
| |
| Subdirectory | subdir |
| | The current sub directory we are searching through.
|
| |
Scanner to find the unique IDs of scenarios.
Definition at line 605 of file fios.cpp.
◆ ScenarioScanner()
| ScenarioScanner::ScenarioScanner |
( |
| ) |
|
|
inline |
◆ AddFile()
| bool ScenarioScanner::AddFile |
( |
const std::string & |
filename, |
|
|
size_t |
basepath_length, |
|
|
const std::string & |
tar_filename |
|
) |
| |
|
inlineoverridevirtual |
Add a file with the given filename.
- Parameters
-
| filename | the full path to the file to read |
| basepath_length | amount of characters to chop of before to get a filename relative to the search path. |
| tar_filename | the name of the tar file the file is read from. |
- Returns
- true if the file is added.
Implements FileScanner.
Definition at line 623 of file fios.cpp.
References FioFOpenFile(), include(), and SCENARIO_DIR.
◆ Scan()
| void ScenarioScanner::Scan |
( |
bool |
rescan | ) |
|
|
inline |
◆ scanned
| bool ScenarioScanner::scanned |
|
private |
Whether we've already scanned.
Definition at line 606 of file fios.cpp.
The documentation for this class was generated from the following file: