KItinerary
uic9183flex.cpp
61 return isValid() && !std::visit([](auto &&data) { return data.transportDocument.empty(); }, *d->m_data);
74const std::variant<Fcb::v13::UicRailTicketData, Fcb::v3::UicRailTicketData>& Uic9183Flex::fcb() const
81 return isValid() ? std::visit([](auto &&data) { return QVariant::fromValue(data); }, *d->m_data) : QVariant();
static QString toStationIdentifier(CodeTableTypeT stationCodeTable, const T &doc)
Arrival station identifier for a travel document, in the format needed for output with our JSON-LD fo...
Definition fcbutil.h:48
static QString fromStationIdentifier(CodeTableTypeT stationCodeTable, const T &doc)
Departure station identifier for a travel document, in the format needed for output with our JSON-LD ...
Definition fcbutil.h:34
Top-level type for the ERA FCB ticket structure.
Definition fcbticket.h:1007
Represents a U_FLEX block holding different versions of an FCB payload.
Definition uic9183flex.h:24
bool isValid() const
Returns whether this is a valid U_FLEX layout block.
Definition uic9183flex.cpp:49
static void readArrivalStation(const QVariant &doc, TrainStation &station)
Read arrival station info from the given FCB travel document, if applicable.
Definition uic9183flex.cpp:93
static void fixStationCode(TrainStation &station)
Fix known issues with station identifiers.
Definition uic9183flex.cpp:102
static void readDepartureStation(const QVariant &doc, TrainStation &station)
Read departure station info from the given FCB travel document, if applicable.
Definition uic9183flex.cpp:84
QList< QVariant > transportDocuments() const
Transport documents of the contained FCB.
Definition uic9183flex.cpp:64
bool hasTransportDocument() const
true when this is a valid FCB with at least one transport document.
Definition uic9183flex.cpp:59
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
void reserve(qsizetype size)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.