StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
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 21 of file ParsedKey.hpp.

Constructor & Destructor Documentation

stdair::ParsedKey::ParsedKey ( )

Definition at line 40 of file ParsedKey.cpp.

stdair::ParsedKey::~ParsedKey ( )

Definition at line 46 of file ParsedKey.cpp.

Member Function Documentation

InventoryKey stdair::ParsedKey::getInventoryKey ( ) const
SegmentDateKey stdair::ParsedKey::getSegmentKey ( ) const
const Duration_T stdair::ParsedKey::getBoardingTime ( ) const
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 115 of file ParsedKey.cpp.

References toString().

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 120 of file ParsedKey.cpp.

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 124 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::display(), getBoardingTime(), getFlightDateKey(), getInventoryKey(), getSegmentKey(), and toStream().

Member Data Documentation

std::string stdair::ParsedKey::_fullKey
std::string stdair::ParsedKey::_airlineCode
std::string stdair::ParsedKey::_flightNumber

Definition at line 74 of file ParsedKey.hpp.

Referenced by stdair::BomKeyManager::extractKeys(), getFlightDateKey(), and toString().

std::string stdair::ParsedKey::_departureDate

Definition at line 75 of file ParsedKey.hpp.

Referenced by stdair::BomKeyManager::extractKeys(), getFlightDateKey(), and toString().

std::string stdair::ParsedKey::_boardingPoint

Definition at line 76 of file ParsedKey.hpp.

Referenced by stdair::BomKeyManager::extractKeys(), getSegmentKey(), and toString().

std::string stdair::ParsedKey::_offPoint

Definition at line 77 of file ParsedKey.hpp.

Referenced by stdair::BomKeyManager::extractKeys(), getSegmentKey(), and toString().

std::string stdair::ParsedKey::_boardingTime

Definition at line 78 of file ParsedKey.hpp.

Referenced by stdair::BomKeyManager::extractKeys(), getBoardingTime(), and toString().


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