Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::TrainFileReader Class Reference
Inheritance diagram for trax::TrainFileReader:

Public Member Functions

 TrainFileReader (TrainParser &parser, std::filesystem::path basePath=std::filesystem::path{}) noexcept
bool Read (std::filesystem::path filePath) override
 Reads an object from a file.
Public Member Functions inherited from trax::FileReader
 FileReader (std::filesystem::path basePath=std::filesystem::path{}) noexcept
bool operator() (std::filesystem::path filePath)

Additional Inherited Members

Protected Member Functions inherited from trax::FileReader
std::filesystem::path GetBasePath () const noexcept
bool MakeValidPath (std::filesystem::path &path) const noexcept

Member Function Documentation

◆ Read()

bool trax::TrainFileReader::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_erroron any kind of malformatted file content.

Implements trax::FileReader.


The documentation for this class was generated from the following file: