KPublicTransport::UicRailwayCoach
Functions | |
VehicleSection::Classes | coachClass (QStringView coachNumber, QStringView coachClassification) |
QStringView | countryCode (QStringView coachNumber) |
int | deckCount (QStringView coachNumber, QStringView coachClassification) |
VehicleSection::Features | features (QStringView coachNumber, QStringView coachClassification) |
VehicleSection::Type | type (QStringView coachNumber, QStringView coachClassification) |
Detailed Description
Methods for parsing UIC railway coach numbers and classification codes.
Function Documentation
◆ coachClass()
VehicleSection::Classes KPublicTransport::UicRailwayCoach::coachClass | ( | QStringView | coachNumber, |
QStringView | coachClassification ) |
Determine the coach class(es) from a UIC coachNumber
and/or coachClassification
.
Either one of the arguments can be empty, but the most reliable result is returned with both present.
Definition at line 55 of file uicrailwaycoach.cpp.
◆ countryCode()
QStringView KPublicTransport::UicRailwayCoach::countryCode | ( | QStringView | coachNumber | ) |
Returns the UIC country code from coachNumber
.
Definition at line 12 of file uicrailwaycoach.cpp.
◆ deckCount()
int KPublicTransport::UicRailwayCoach::deckCount | ( | QStringView | coachNumber, |
QStringView | coachClassification ) |
Determine the number of decks from a UIC coachNumber
and/or coachClassification
.
Either one of the arguments can be empty, but the most reliable result is returned with both present.
Definition at line 164 of file uicrailwaycoach.cpp.
◆ features()
VehicleSection::Features KPublicTransport::UicRailwayCoach::features | ( | QStringView | coachNumber, |
QStringView | coachClassification ) |
Determine coach features from a UIC coachNumber
and/or coachClassification
.
Either one of the arguments can be empty, but the most reliable result is returned with both present.
Definition at line 189 of file uicrailwaycoach.cpp.
◆ type()
VehicleSection::Type KPublicTransport::UicRailwayCoach::type | ( | QStringView | coachNumber, |
QStringView | coachClassification ) |
Determine the vehicle type from a UIC coachNumber
and/or coachClassification
.
Either one of the arguments can be empty, but the most reliable result is returned with both present.
Definition at line 221 of file uicrailwaycoach.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.