KPublicTransport

uicrailwaycoach.h
1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KPUBLICTRANSPORT_UICRAILWAYCOACH_H
7#define KPUBLICTRANSPORT_UICRAILWAYCOACH_H
8
9#include <KPublicTransport/Vehicle>
10
11namespace KPublicTransport {
12
13/** Methods for parsing UIC railway coach numbers and classification codes.
14 * @see https://en.wikipedia.org/wiki/UIC_classification_of_railway_coaches
15 * @see https://en.wikipedia.org/wiki/UIC_wagon_numbers
16 */
17namespace UicRailwayCoach
18{
19
20/** Returns the UIC country code from @p coachNumber. */
22
23/** Determine the coach class(es) from a UIC @p coachNumber and/or @p coachClassification.
24 * Either one of the arguments can be empty, but the most reliable result is returned with both present.
25 */
26VehicleSection::Classes coachClass(QStringView coachNumber, QStringView coachClassification);
27
28/** Determine the number of decks from a UIC @p coachNumber and/or @p coachClassification.
29 * Either one of the arguments can be empty, but the most reliable result is returned with both present.
30 */
31int deckCount(QStringView coachNumber, QStringView coachClassification);
32
33/** Determine coach features from a UIC @p coachNumber and/or @p coachClassification.
34 * Either one of the arguments can be empty, but the most reliable result is returned with both present.
35 */
36VehicleSection::Features features(QStringView coachNumber, QStringView coachClassification);
37
38/** Determine the vehicle type from a UIC @p coachNumber and/or @p coachClassification.
39 * Either one of the arguments can be empty, but the most reliable result is returned with both present.
40 */
41VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification);
42
43}
44
45}
46
47#endif // KPUBLICTRANSPORT_UICRAILWAYCOACH_H
QStringView countryCode(QStringView coachNumber)
Returns the UIC country code from coachNumber.
VehicleSection::Classes coachClass(QStringView coachNumber, QStringView coachClassification)
Determine the coach class(es) from a UIC coachNumber and/or coachClassification.
Query operations and data types for accessing realtime public transport information from online servi...
This file is part of the KDE documentation.
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.