Typedefs | |
| using | CarType = _CarType |
| Type of the car. | |
| using | PowerType = _PowerType |
| Type of the power. | |
| using | LocomotivePowerMethod = _LocomotivePowerMethod |
| Type of the power. | |
| using | FuelType = _fuelTypes |
| Type of the fuel. | |
Enumerations | |
| enum class | _CarType { cargo , dieselTender , batteryTender , hydrogenTender , biodieselTender } |
| Values that represent car types. More... | |
| enum class | _PowerType { diesel , electric , biodiesel , dieselElectric , dieselHybrid , hydrogenHybrid , biodieselHybrid } |
| Values that represent power types. More... | |
| enum class | _LocomotivePowerMethod { notApplicable , series , parallel } |
| Values that represent power types. More... | |
| enum class | _fuelTypes { diesel , biodiesel , hydrogen , noFuel } |
| Values that represent fuel types. More... | |
Functions | |
| Vector< CarType > | getCarTypeVector () |
| Gets car type vector. | |
| std::string | carTypeToStr (CarType type) |
| Car type to string. | |
| CarType | strtoCarType (const std::string &cartype) |
| Strto car type. | |
| CarType | itoCarType (int cartype) |
| Ito car type. | |
| std::ostream & | operator<< (std::ostream &ss, const CarType &obj) |
| Stream insertion operator. | |
| std::string | PowerTypeToStr (PowerType type) |
| Power type to string. | |
| PowerType | strToPowerType (std::string powertype) |
| Converts a powertype to a power type. | |
| PowerType | iToPowerType (int powertype) |
| Converts a powertype to a power type. | |
| std::ostream & | operator<< (std::ostream &ss, const PowerType &obj) |
| Stream insertion operator. | |
| LocomotivePowerMethod | strToPowerMethod (std::string powertype) |
| Converts a string to a power method. | |
| LocomotivePowerMethod | iToPowerMethod (int powertype) |
| Converts a powertype to a power type. | |
| std::ostream & | operator<< (std::ostream &ss, const LocomotivePowerMethod &obj) |
| Stream insertion operator. | |
| std::string | fuelTypeToStr (FuelType type) |
| FuelType | getFuelTypeFromPowerType (PowerType theType) |
| using TrainTypes::CarType = typedef _CarType |
Type of the car.
| using TrainTypes::FuelType = typedef _fuelTypes |
Type of the fuel.
| using TrainTypes::LocomotivePowerMethod = typedef _LocomotivePowerMethod |
Type of the power.
| using TrainTypes::PowerType = typedef _PowerType |
Type of the power.
|
strong |
|
strong |
|
strong |
|
strong |
|
inline |
|
inline |
Gets car type vector.
|
inline |
Ito car type.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| cartype | The cartype. |
|
inline |
Converts a powertype to a power type.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| powertype | The powertype. |
|
inline |
Converts a powertype to a power type.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| powertype | The powertype. |
|
inline |
Stream insertion operator.
| [in,out] | ss | The ss. |
| obj | The object. |
|
inline |
Stream insertion operator.
| [in,out] | ss | The ss. |
| obj | The object. |
|
inline |
Stream insertion operator.
| [in,out] | ss | The ss. |
| obj | The object. |
|
inline |
Power type to string.
| type | The type. |
|
inline |
Strto car type.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| cartype | The cartype. |
|
inline |
Converts a string to a power method.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| powertype | The powertype. |
|
inline |
Converts a powertype to a power type.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| powertype | The powertype. |