30#include "RollingStockFileReader.h"
32#include "TrainCreator.h"
37 class TrainFileReader :
public FileReader{
39 TrainFileReader(
TrainParser& parser, std::filesystem::path basePath = std::filesystem::path{} )
noexcept;
41 bool Read( std::filesystem::path filePath )
override;
48 class TrainFileReferenceReader :
public TrainFileReader,
49 protected TrainCreator {
51 TrainFileReferenceReader(
Scene& scene, std::filesystem::path basePath = std::filesystem::path{} )
noexcept;
53 std::shared_ptr<Train> GetTrain()
const noexcept;
57 const std::string& name,
58 const std::string& reference,
63 int32_t credit )
noexcept(
false)
override;
66 const std::string& name,
67 const std::string& reference )
noexcept(
false)
override;
70 const std::string& name,
71 const std::string& reference )
noexcept(
false)
override;
Definition RollingStockFileReader.h:73
Definition RailRunnerParser.h:50
bool Read(std::filesystem::path filePath) override
Reads an object from a file.
Definition RailRunnerParser.h:127
Value< Dimension< 1, 0, -1 > > Velocity
Velocity.
Definition DimensionedValues.h:331
Value< Dimension< 0, 0, 0 > > One
Dimensionless value.
Definition DimensionedValues.h:319
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
Type used for IDs in the trax library.
Definition IDType.h:43
A physical simulation scene for running a simulation and creating physical objects in the scene.
Definition Scene.h:72