StdAir Logo  1.00.20
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
stdair::ParsedKey Struct Reference

#include <stdair/bom/ParsedKey.hpp>

+ Inheritance diagram for stdair::ParsedKey:

Public Member Functions

InventoryKey getInventoryKey () const
 
FlightDateKey getFlightDateKey () const
 
SegmentDateKey getSegmentKey () const
 
LegDateKey getLegKey () const
 
const Duration_T getBoardingTime () const
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
const std::string toString () const
 
 ParsedKey ()
 
 ~ParsedKey ()
 

Public Attributes

std::string _fullKey
 
std::string _airlineCode
 
std::string _flightNumber
 
std::string _departureDate
 
std::string _boardingPoint
 
std::string _offPoint
 
std::string _boardingTime
 

Detailed Description

Structure which holds the results/keys after the parsing.

Definition at line 22 of file ParsedKey.hpp.

Constructor & Destructor Documentation

◆ ParsedKey()

stdair::ParsedKey::ParsedKey ( )

◆ ~ParsedKey()

stdair::ParsedKey::~ParsedKey ( )

Definition at line 47 of file ParsedKey.cpp.

Member Function Documentation

◆ getInventoryKey()

InventoryKey stdair::ParsedKey::getInventoryKey ( ) const

◆ getFlightDateKey()

◆ getSegmentKey()

SegmentDateKey stdair::ParsedKey::getSegmentKey ( ) const

◆ getLegKey()

LegDateKey stdair::ParsedKey::getLegKey ( ) const

Leg-date key.

Definition at line 84 of file ParsedKey.cpp.

References _boardingPoint, _fullKey, STDAIR_LOG_DEBUG, STDAIR_LOG_ERROR, and toString().

Referenced by stdair::BomKeyManager::extractLegDateKey().

◆ getBoardingTime()

const Duration_T stdair::ParsedKey::getBoardingTime ( ) const

◆ toStream()

void stdair::ParsedKey::toStream ( std::ostream & ioOut) const
virtual

Dump a Business Object Key into an output stream.

Parameters
ostream&the output stream.

Reimplemented from stdair::KeyAbstract.

Definition at line 130 of file ParsedKey.cpp.

References toString().

◆ fromStream()

void stdair::ParsedKey::fromStream ( std::istream & ioIn)
virtual

Read a Business Object Key from an input stream.

Parameters
istream&the input stream.

Reimplemented from stdair::KeyAbstract.

Definition at line 135 of file ParsedKey.cpp.

◆ toString()

const std::string stdair::ParsedKey::toString ( ) const
virtual

Get the serialised version of the Business Object Key.

That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.

For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-date.

Reimplemented from stdair::KeyAbstract.

Definition at line 139 of file ParsedKey.cpp.

References _airlineCode, _boardingPoint, _boardingTime, _departureDate, _flightNumber, _offPoint, stdair::DEFAULT_KEY_FLD_DELIMITER, and stdair::DEFAULT_KEY_SUB_FLD_DELIMITER.

Referenced by stdair::TravelSolutionStruct::describe(), stdair::TravelSolutionStruct::describeSegmentPath(), stdair::TravelSolutionStruct::display(), getBoardingTime(), getFlightDateKey(), getInventoryKey(), getLegKey(), getSegmentKey(), and toStream().

Member Data Documentation

◆ _fullKey

std::string stdair::ParsedKey::_fullKey

◆ _airlineCode

std::string stdair::ParsedKey::_airlineCode

◆ _flightNumber

std::string stdair::ParsedKey::_flightNumber

◆ _departureDate

std::string stdair::ParsedKey::_departureDate

◆ _boardingPoint

std::string stdair::ParsedKey::_boardingPoint

◆ _offPoint

std::string stdair::ParsedKey::_offPoint

◆ _boardingTime

std::string stdair::ParsedKey::_boardingTime

The documentation for this struct was generated from the following files: