KPublicTransport::IfoptUtil
Functions | |
QStringView | country (QStringView ifopt) |
QString | identifierType () |
bool | isSameStopPlace (QStringView lhs, QStringView rhs) |
bool | isValid (QStringView ifopt) |
QStringView | level (QStringView ifopt) |
QStringView | merge (QStringView lhs, QStringView rhs) |
QStringView | stopPlace (QStringView ifopt) |
Detailed Description
Utility functions for dealing with IFOPT (Identification of Fixed Objects in Public Transport).
Function Documentation
◆ country()
QStringView KPublicTransport::IfoptUtil::country | ( | QStringView | ifopt | ) |
Returns the country identifier for the given (valid!) IFOPT identifier ifopt
.
Definition at line 43 of file ifoptutil.cpp.
◆ identifierType()
QString KPublicTransport::IfoptUtil::identifierType | ( | ) |
The identifier type for use in Location::identifer
for IFOPT ids.
Definition at line 83 of file ifoptutil.cpp.
◆ isSameStopPlace()
bool KPublicTransport::IfoptUtil::isSameStopPlace | ( | QStringView | lhs, |
QStringView | rhs ) |
Checks whether two valid IFOPT ids refer to the same stop place.
Definition at line 58 of file ifoptutil.cpp.
◆ isValid()
bool KPublicTransport::IfoptUtil::isValid | ( | QStringView | ifopt | ) |
Check if ifopt
is a valid IFOPT identifier.
Definition at line 14 of file ifoptutil.cpp.
◆ level()
QStringView KPublicTransport::IfoptUtil::level | ( | QStringView | ifopt | ) |
Returns the stop level identifier for the given (valid!) IFOPT identifier ifopt
.
Definition at line 53 of file ifoptutil.cpp.
◆ merge()
QStringView KPublicTransport::IfoptUtil::merge | ( | QStringView | lhs, |
QStringView | rhs ) |
Merge two IFOPT ids that refer to the same stop place while retaining the maximum level of detail.
Precondition: isValid(lhs) && isValid(rhs) && isSameStopPlace(lhs, rhs)
Definition at line 63 of file ifoptutil.cpp.
◆ stopPlace()
QStringView KPublicTransport::IfoptUtil::stopPlace | ( | QStringView | ifopt | ) |
Returns the stop place identifier for the given (valid!) IFOPT identifier ifopt
.
Definition at line 48 of file ifoptutil.cpp.
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.