KItinerary::Uic9183Flex
#include <uic9183flex.h>
Properties | |
QVariant | fcb |
Public Member Functions | |
Uic9183Flex (const Uic9183Block &block) | |
Uic9183Flex (const Uic9183Flex &) | |
const std::variant< Fcb::v13::UicRailTicketData, Fcb::v3::UicRailTicketData > & | fcb () const |
bool | hasTransportDocument () const |
QDateTime | issuingDateTime () const |
bool | isValid () const |
Uic9183Flex & | operator= (const Uic9183Flex &) |
QList< QVariant > | transportDocuments () const |
Static Public Member Functions | |
static void | fixStationCode (TrainStation &station) |
static void | readArrivalStation (const QVariant &doc, TrainStation &station) |
static void | readDepartureStation (const QVariant &doc, TrainStation &station) |
Static Public Attributes | |
static constexpr const char | RecordId [] = "U_FLEX" |
Detailed Description
Represents a U_FLEX block holding different versions of an FCB payload.
- See also
- ERA TAP TSI TD B.12 Digital Security Elements For Rail Passenger Ticketing - ยง11 FCB - Flexible Content Barcode
Definition at line 23 of file uic9183flex.h.
Property Documentation
◆ fcb
|
read |
Definition at line 26 of file uic9183flex.h.
Constructor & Destructor Documentation
◆ Uic9183Flex()
Uic9183Flex::Uic9183Flex | ( | const Uic9183Block & | block | ) |
Parse U_FLEX block in data
.
It's the callers responsibility to ensure data
outlives this instance, the data is not copied.
- Parameters
-
block A UIC 918.3 U_FLEX data block
Definition at line 29 of file uic9183flex.cpp.
Member Function Documentation
◆ fcb()
|
nodiscard |
Returns the FCB payload.
Varies depending on the version of this block.
Definition at line 74 of file uic9183flex.cpp.
◆ fixStationCode()
|
static |
Fix known issues with station identifiers.
Definition at line 102 of file uic9183flex.cpp.
◆ hasTransportDocument()
|
nodiscard |
true
when this is a valid FCB with at least one transport document.
Definition at line 59 of file uic9183flex.cpp.
◆ issuingDateTime()
|
nodiscard |
Issuing date/time.
Definition at line 54 of file uic9183flex.cpp.
◆ isValid()
|
nodiscard |
Returns whether this is a valid U_FLEX layout block.
Definition at line 49 of file uic9183flex.cpp.
◆ readArrivalStation()
|
static |
Read arrival station info from the given FCB travel document, if applicable.
Definition at line 93 of file uic9183flex.cpp.
◆ readDepartureStation()
|
static |
Read departure station info from the given FCB travel document, if applicable.
Definition at line 84 of file uic9183flex.cpp.
◆ transportDocuments()
Transport documents of the contained FCB.
Definition at line 64 of file uic9183flex.cpp.
Member Data Documentation
◆ RecordId
|
staticconstexpr |
Definition at line 63 of file uic9183flex.h.
The documentation for this class was generated from the following files:
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.