KPublicTransport::UicRailwayCoach

KPublicTransport::UicRailwayCoach Namespace Reference

Functions

VehicleSection::Classes coachClass (QStringView coachNumber, QStringView coachClassification)
 
QStringView countryCode (QStringView coachNumber)
 
int deckCount (QStringView coachNumber, QStringView coachClassification)
 
std::vector< Featurefeatures (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 56 of file uicrailwaycoach.cpp.

◆ countryCode()

QStringView KPublicTransport::UicRailwayCoach::countryCode ( QStringView coachNumber)

Returns the UIC country code from coachNumber.

Definition at line 13 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 165 of file uicrailwaycoach.cpp.

◆ features()

std::vector< Feature > 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 190 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 222 of file uicrailwaycoach.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.