#include <string>
#include <stdexcept>
#include "../util/vector.h"
#include "../util/error.h"
#include <map>
Go to the source code of this file.
Namespaces | |
namespace | TrainTypes |
Typedefs | |
using | TrainTypes::CarType = _CarType |
Type of the car. | |
using | TrainTypes::PowerType = _PowerType |
Type of the power. | |
using | TrainTypes::LocomotivePowerMethod = _LocomotivePowerMethod |
Type of the power. | |
using | TrainTypes::FuelType = _fuelTypes |
Type of the fuel. | |
Enumerations | |
enum class | TrainTypes::_CarType { TrainTypes::cargo , TrainTypes::dieselTender , TrainTypes::batteryTender , TrainTypes::hydrogenTender , TrainTypes::biodieselTender } |
Values that represent car types. More... | |
enum class | TrainTypes::_PowerType { TrainTypes::diesel , TrainTypes::electric , TrainTypes::biodiesel , TrainTypes::dieselElectric , TrainTypes::dieselHybrid , TrainTypes::hydrogenHybrid , TrainTypes::biodieselHybrid } |
Values that represent power types. More... | |
enum class | TrainTypes::_LocomotivePowerMethod { TrainTypes::notApplicable , TrainTypes::series , TrainTypes::parallel } |
Values that represent power types. More... | |
enum class | TrainTypes::_fuelTypes { TrainTypes::diesel , TrainTypes::biodiesel , TrainTypes::hydrogen , TrainTypes::noFuel } |
Values that represent fuel types. More... | |
Functions | |
Vector< CarType > | TrainTypes::getCarTypeVector () |
Gets car type vector. | |
std::string | TrainTypes::carTypeToStr (CarType type) |
Car type to string. | |
CarType | TrainTypes::strtoCarType (const std::string &cartype) |
Strto car type. | |
CarType | TrainTypes::itoCarType (int cartype) |
Ito car type. | |
std::ostream & | TrainTypes::operator<< (std::ostream &ss, const CarType &obj) |
Stream insertion operator. | |
std::string | TrainTypes::PowerTypeToStr (PowerType type) |
Power type to string. | |
PowerType | TrainTypes::strToPowerType (std::string powertype) |
Converts a powertype to a power type. | |
PowerType | TrainTypes::iToPowerType (int powertype) |
Converts a powertype to a power type. | |
std::ostream & | TrainTypes::operator<< (std::ostream &ss, const PowerType &obj) |
Stream insertion operator. | |
LocomotivePowerMethod | TrainTypes::strToPowerMethod (std::string powertype) |
Converts a string to a power method. | |
LocomotivePowerMethod | TrainTypes::iToPowerMethod (int powertype) |
Converts a powertype to a power type. | |
std::ostream & | TrainTypes::operator<< (std::ostream &ss, const LocomotivePowerMethod &obj) |
Stream insertion operator. | |
std::string | TrainTypes::fuelTypeToStr (FuelType type) |
FuelType | TrainTypes::getFuelTypeFromPowerType (PowerType theType) |