KItinerary::Uic9183Flex

Search for usage in LXR

#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
 
Uic9183Flexoperator= (const Uic9183Flex &)
 
QList< QVarianttransportDocuments () 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

QVariant KItinerary::Uic9183Flex::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
blockA UIC 918.3 U_FLEX data block

Definition at line 29 of file uic9183flex.cpp.

Member Function Documentation

◆ fcb()

const std::variant< Fcb::v13::UicRailTicketData, Fcb::v3::UicRailTicketData > & Uic9183Flex::fcb ( ) const
nodiscard

Returns the FCB payload.

Varies depending on the version of this block.

Definition at line 74 of file uic9183flex.cpp.

◆ fixStationCode()

void Uic9183Flex::fixStationCode ( TrainStation & station)
static

Fix known issues with station identifiers.

Definition at line 102 of file uic9183flex.cpp.

◆ hasTransportDocument()

bool Uic9183Flex::hasTransportDocument ( ) const
nodiscard

true when this is a valid FCB with at least one transport document.

Definition at line 59 of file uic9183flex.cpp.

◆ issuingDateTime()

QDateTime Uic9183Flex::issuingDateTime ( ) const
nodiscard

Issuing date/time.

Definition at line 54 of file uic9183flex.cpp.

◆ isValid()

bool Uic9183Flex::isValid ( ) const
nodiscard

Returns whether this is a valid U_FLEX layout block.

Definition at line 49 of file uic9183flex.cpp.

◆ readArrivalStation()

void Uic9183Flex::readArrivalStation ( const QVariant & doc,
TrainStation & station )
static

Read arrival station info from the given FCB travel document, if applicable.

Definition at line 93 of file uic9183flex.cpp.

◆ readDepartureStation()

void Uic9183Flex::readDepartureStation ( const QVariant & doc,
TrainStation & station )
static

Read departure station info from the given FCB travel document, if applicable.

Definition at line 84 of file uic9183flex.cpp.

◆ transportDocuments()

QList< QVariant > Uic9183Flex::transportDocuments ( ) const
nodiscard

Transport documents of the contained FCB.

Definition at line 64 of file uic9183flex.cpp.

Member Data Documentation

◆ RecordId

const char KItinerary::Uic9183Flex::RecordId[] = "U_FLEX"
staticconstexpr

Definition at line 63 of file uic9183flex.h.


The documentation for this class was generated from the following files:
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

KDE's Doxygen guidelines are available online.