![]() |
Trax3 3.1.0
trax track library
|
Base class for file readers. More...
#include <C:/Trend/Development/Trax3/Code/trax/rigid/trains/support/RollingStockFileReader.h>

Public Member Functions | |
| FileReader (std::filesystem::path basePath=std::filesystem::path{}) noexcept | |
| bool | operator() (std::filesystem::path filePath) |
| virtual bool | Read (std::filesystem::path filePath)=0 |
| Reads an object from a file. | |
Protected Member Functions | |
| std::filesystem::path | GetBasePath () const noexcept |
| bool | MakeValidPath (std::filesystem::path &path) const noexcept |
Base class for file readers.
|
pure virtual |
Reads an object from a file.
| std::runtime_error | on any kind of malformatted file content. |
Implemented in trax::RollingStockFileReader, and trax::TrainFileReader.