Commit 98efafd5 authored by Volker Krause's avatar Volker Krause
Browse files

Support more Austrian double-deck coach variants

parent fd91ed35
......@@ -37,6 +37,7 @@ private Q_SLOTS:
QCOMPARE(UicRailwayCoach::deckCount(QString(), u"DABpza"), 2);
QCOMPARE(UicRailwayCoach::deckCount(u"505486720019", u"ABfbdmteeo"), 2);
QCOMPARE(UicRailwayCoach::deckCount(u"615485711035", u"ARmpee"), 1);
QCOMPARE(UicRailwayCoach::deckCount(u"508126339000", u"Bmpz-dl"), 2);
}
void testFeatures()
......
......@@ -93,7 +93,7 @@ struct {
// see https://en.wikipedia.org/wiki/UIC_classification_of_railway_coaches
struct UicClassificationSecondary {
const char code[3];
const char code[4];
VehicleSection::Features features;
VehicleSection::Type type;
int deckCount;
......@@ -127,6 +127,8 @@ static constexpr const UicClassificationSecondary secondary_81_table[] = {
{ "f", VehicleSection::NoFeatures, VehicleSection::ControlCar, 1 },
{ "p", VehicleSection::NoFeatures, VehicleSection::PassengerCar, 1 },
{ "-s", VehicleSection::NoFeatures, VehicleSection::ControlCar, 1 },
{ "-dl", VehicleSection::NoFeatures, VehicleSection::PassengerCar, 2 },
{ "-ds", VehicleSection::NoFeatures, VehicleSection::ControlCar, 2 },
};
struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment