KPublicTransport::UicRailwayCoach

KPublicTransport::UicRailwayCoach Namespace Reference

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.

See also
https://en.wikipedia.org/wiki/UIC_classification_of_railway_coaches
https://en.wikipedia.org/wiki/UIC_wagon_numbers

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 161 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 186 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 218 of file uicrailwaycoach.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 03:56:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.