|
|
| RollingStockFileReader (RollingStockParser &parser, std::filesystem::path basePath=std::filesystem::path{}) noexcept |
| bool | Read (std::filesystem::path filePath) override |
| | Reads an object from a file.
|
|
| RollingStockFileReader_Base (RollingStockParser &parser, std::filesystem::path basePath=std::filesystem::path{}) noexcept |
|
| FileReader (std::filesystem::path basePath=std::filesystem::path{}) noexcept |
|
bool | operator() (std::filesystem::path filePath) |
|
|
std::filesystem::path | GetBasePath () const noexcept |
|
bool | MakeValidPath (std::filesystem::path &path) const noexcept |
|
RollingStockParser & | m_Parser |
◆ Read()
| bool trax::RollingStockFileReader::Read |
( |
std::filesystem::path | filePath | ) |
|
|
overridevirtual |
Reads an object from a file.
- Returns
- true if the file could be read successfuly; false if the file could not be found.
- Exceptions
-
| std::runtime_error | on any kind of malformatted file content. |
Implements trax::FileReader.
The documentation for this class was generated from the following file: