30#include "trax/Parser.h"
32#include "trax/rigid/Geom.h"
33#include "trax/rigid/trains/RailRunner.h"
46 struct WheelFrameLimits;
52 virtual bool RollingStockStart()
noexcept(
false) {
return true; }
55 virtual bool BogieStart(
58 const std::string& )
noexcept(
false) {
return true; }
60 virtual void BogieFrame(
63 virtual bool GeomStart(
67 Mass )
noexcept(
false) {
return true; }
69 virtual void Material(
70 const Material& )
noexcept {}
76 Mass )
noexcept(
false) {}
78 virtual void Coupling(
90 virtual void BogieEnd(
91 const std::string& )
noexcept {}
94 virtual bool WheelFrameStart(
97 const std::string& )
noexcept(
false) {
return true; }
99 virtual bool TractionForceCharacteristicStart()
noexcept(
false) {
return true; }
101 virtual void SpeedStep(
105 virtual void TractionForceCharacteristicEnd()
noexcept(
false) {}
107 virtual void TrackJointLimits(
108 const TrackJointLimits& )
noexcept {}
110 virtual void Wheelset(
111 const Wheelset& )
noexcept {}
113 virtual bool TrackLocation(
119 virtual void WheelFrameEnd(
120 const std::string& )
noexcept {}
123 virtual void RollingStockEnd()
noexcept(
false) {}
130 virtual bool TrainStart(
138 int32_t )
noexcept(
false) {
142 virtual void TrackLocation(
147 const std::string& )
noexcept(
false){
151 virtual void AxisArrangementEnd(
156 const std::string& )
noexcept(
false){
160 virtual void RollingStockEnd(
163 virtual void TrainEnd(
167 bool )
noexcept(
false) {}
173 virtual bool FleetStart(
174 IDType )
noexcept(
false) {
178 virtual void FleetEnd()
noexcept(
false) {}
182 void dclspc ParseRollingStock( std::basic_istream<char>& stream,
RollingStockParser& callback )
noexcept(
false);
184 void dclspc ParseRollingStock(
const std::filesystem::path& filePath,
RollingStockParser& callback )
noexcept(
false);
188 void dclspc ParseTrain(
const unsigned char* bufferStart,
const unsigned char* bufferEnd,
TrainParser& callback )
noexcept(
false);
190 void dclspc ParseTrain( std::basic_istream<char>& stream,
TrainParser& callback )
noexcept(
false);
192 void dclspc ParseTrain(
const std::filesystem::path& filePath,
TrainParser& callback )
noexcept(
false);
194 void dclspc ParseTrain(
const Train& train,
TrainParser& callback )
noexcept(
false);
196 bool dclspc ParseFleet( std::basic_istream<char>& stream,
FleetParser& callback )
noexcept(
false);
198 bool dclspc ParseFleet(
const std::filesystem::path& filePath,
FleetParser& callback )
noexcept(
false);
200 bool dclspc ParseFleet(
const Fleet& fleet,
FleetParser& callback )
noexcept(
false);
Definition RailRunnerParser.h:171
Definition RailRunnerParser.h:50
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
Value< Dimension< 1, 0, 0 > > Length
Length.
Definition DimensionedValues.h:324
Value< Dimension< 0, 1, 0 > > Mass
Mass.
Definition DimensionedValues.h:327
Value< Dimension< 1, 1, -2 > > Force
Force.
Definition DimensionedValues.h:333
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
GeomType
Type of a geom.
Definition GeomType.h:33
A Frame ("TNBFrame") describes a location in 3d space and an orientation using a right handed coordin...
Definition Frame.h:52
A Bogie is a RailRunner that can be attached to another Bogie by a swivel and can be coupled to anoth...
Definition Bogie.h:67
A Fleet holds Trains and (topmost) Bogies via their common interface RailRunner.
Definition Fleet.h:48
Filters
Filter flags that will serve in fast collision testing.
Definition Geom.h:110
Type used for IDs in the trax library.
Definition IDType.h:43
Provides two values for orientation.
Definition Orientation.h:37
EndType
Types of the RailRunner's end's.
Definition RailRunner.h:351
A RollingStock is a RailRunner that manages one or more connected Bogies.
Definition RollingStock.h:45
The maximum forces and spatial deviations of a WheelFrame used by physics calculations.
Definition TrackJointLimits.h:38
A track location, referencing the track by id.
Definition TrackLocation.h:102
A Train is a collection of TrainComponents that are coupled in a row.
Definition Train.h:43
Describing data of a wheelset.
Definition Wheelset.h:40