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

Public Member Functions

 TrainFileReferenceReader (Scene &scene, std::filesystem::path basePath=std::filesystem::path{}) noexcept
std::shared_ptr< TrainGetTrain () const noexcept
Public Member Functions inherited from trax::TrainFileReader
 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)

Protected Member Functions

bool TrainStart (IDType id, const std::string &name, const std::string &reference, Velocity travel_velocity, Velocity velocity, One trainThrust, One trainBrake, int32_t credit) noexcept(false) override
RollingStockParserAxisArrangementStart (const std::string &name, const std::string &reference) noexcept(false) override
RollingStockParserRollingStockStart (const std::string &name, const std::string &reference) noexcept(false) override
Protected Member Functions inherited from trax::FileReader
std::filesystem::path GetBasePath () const noexcept
bool MakeValidPath (std::filesystem::path &path) const noexcept
Protected Member Functions inherited from trax::TrainCreator
bool ParsingStart () noexcept(false) override
void AxisArrangementEnd (Orientation orientation) noexcept(false) override
void RollingStockEnd (Orientation orientation) noexcept(false) override
void TrainEnd (trax::Orientation orientation, bool automatic, bool couplingNorthActivated, bool couplingSouthActivated) noexcept(false) override
void ParsingEnd () noexcept override
 TrainCreator (Scene &scene) noexcept
std::shared_ptr< TrainGetTrain () const noexcept
Protected Member Functions inherited from trax::TrainParser
virtual void TrackLocation (const TrackLocationRef &) noexcept(false)
Protected Member Functions inherited from trax::Parser
virtual void Frame (const spat::Frame< dim::Length, dim::One > &frame) noexcept
virtual void Area (const spat::Box< dim::Length > &area) noexcept
virtual void Interval (const common::Interval< dim::Length > &interval) noexcept
virtual void DisplayName (const std::string &, const std::string &) noexcept
virtual void Description (const std::string &, const std::string &) noexcept
Protected Member Functions inherited from trax::RollingStockCreator
bool RollingStockStart () noexcept(false) override
bool BogieStart (IDType id, const std::string &name, const std::string &model) noexcept(false) override
void BogieFrame (const spat::Frame< dim::Length, dim::One > &frame) noexcept override
bool GeomStart (const std::string &name, Geom::Filters filter, GeomType type, Mass mass) noexcept(false) override
void Material (const trax::Material &material) noexcept override
void GeomEnd (const std::string &name, Geom::Filters filter, GeomType type, Mass mass) noexcept(false) override
void Coupling (RailRunner::EndType end, Length bufferLength, Force maxForce, IDType typeID, const spat::Frame< dim::Length, dim::One > &frame) noexcept(false) override
void Swivel (RailRunner::EndType slot, IDType childID, const spat::Frame< dim::Length, dim::One > &frame) noexcept(false) override
void BogieEnd (const std::string &sndGroup) noexcept override
bool WheelFrameStart (IDType id, const std::string &name, const std::string &model) noexcept(false) override
bool TractionForceCharacteristicStart () noexcept(false) override
void SpeedStep (Velocity velocity, One value) noexcept override
void TractionForceCharacteristicEnd () noexcept(false) override
void TrackJointLimits (const trax::TrackJointLimits &trackJointLimits) noexcept override
void Wheelset (const trax::Wheelset &wheelset) noexcept override
bool TrackLocation (const TrackLocationRef &trackLocation) noexcept(false) override
void Anchor (const spat::Frame< dim::Length, dim::One > &anchor) noexcept override
void WheelFrameEnd (const std::string &sndGroup) noexcept override
void RollingStockEnd () noexcept(false) override
 RollingStockCreator (Scene &scene)
std::shared_ptr< RollingStockGetRollingStock () const noexcept

Additional Inherited Members

Protected Attributes inherited from trax::Parser
common::Interval< dim::Lengthm_Interval
spat::Box< dim::Lengthm_Area
spat::Frame< dim::Length, dim::Onem_Frame

Member Function Documentation

◆ AxisArrangementStart()

RollingStockParser * trax::TrainFileReferenceReader::AxisArrangementStart ( const std::string & name,
const std::string & reference )
overrideprotectedvirtual

Reimplemented from trax::TrainCreator.

◆ RollingStockStart()

RollingStockParser * trax::TrainFileReferenceReader::RollingStockStart ( const std::string & name,
const std::string & reference )
overrideprotectedvirtual

Reimplemented from trax::TrainCreator.

◆ TrainStart()

bool trax::TrainFileReferenceReader::TrainStart ( IDType id,
const std::string & name,
const std::string & reference,
Velocity travel_velocity,
Velocity velocity,
One trainThrust,
One trainBrake,
int32_t credit )
overrideprotectedvirtual

Reimplemented from trax::TrainCreator.


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