StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
stdair::TravelSolutionStruct Struct Reference

Structure holding the elements of a travel solution. More...

#include <stdair/bom/TravelSolutionStruct.hpp>

+ Inheritance diagram for stdair::TravelSolutionStruct:

Public Member Functions

const SegmentPath_TgetSegmentPath () const
 
const ClassAvailabilityMapHolder_TgetClassAvailabilityMapHolder () const
 
const ClassObjectIDMapHolder_TgetClassObjectIDMapHolder () const
 
const ClassYieldMapHolder_TgetClassYieldMapHolder () const
 
const BidPriceVectorHolder_TgetBidPriceVectorHolder () const
 
const ClassBpvMapHolder_TgetClassBpvMapHolder () const
 
const FareOptionList_TgetFareOptionList () const
 
FareOptionList_TgetFareOptionListRef ()
 
const FareOptionStructgetChosenFareOption () const
 
void addSegment (const std::string &)
 
void addClassAvailabilityMap (const ClassAvailabilityMap_T &)
 
void addClassObjectIDMap (const ClassObjectIDMap_T &)
 
void addClassYieldMap (const ClassYieldMap_T &)
 
void addBidPriceVector (const BidPriceVector_T &)
 
void addClassBpvMap (const ClassBpvMap_T &)
 
void addFareOption (const FareOptionStruct &)
 
void setChosenFareOption (const FareOptionStruct &iChosenFO)
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
const std::string describe () const
 
const std::string display () const
 
const std::string describeSegmentPath () const
 
 TravelSolutionStruct ()
 
 TravelSolutionStruct (const TravelSolutionStruct &)
 
 ~TravelSolutionStruct ()
 

Detailed Description

Structure holding the elements of a travel solution.

Definition at line 24 of file TravelSolutionStruct.hpp.

Constructor & Destructor Documentation

◆ TravelSolutionStruct() [1/2]

stdair::TravelSolutionStruct::TravelSolutionStruct ( )

Default constructor.

Definition at line 16 of file TravelSolutionStruct.cpp.

◆ TravelSolutionStruct() [2/2]

stdair::TravelSolutionStruct::TravelSolutionStruct ( const TravelSolutionStruct iTravelSolution)

Copy constructor.

Definition at line 26 of file TravelSolutionStruct.cpp.

◆ ~TravelSolutionStruct()

stdair::TravelSolutionStruct::~TravelSolutionStruct ( )

Destructor.

Definition at line 20 of file TravelSolutionStruct.cpp.

Member Function Documentation

◆ getSegmentPath()

const SegmentPath_T& stdair::TravelSolutionStruct::getSegmentPath ( ) const
inline

Get the segment path.

Definition at line 28 of file TravelSolutionStruct.hpp.

◆ getClassAvailabilityMapHolder()

const ClassAvailabilityMapHolder_T& stdair::TravelSolutionStruct::getClassAvailabilityMapHolder ( ) const
inline

Get the holder of avalabilities.

Definition at line 33 of file TravelSolutionStruct.hpp.

◆ getClassObjectIDMapHolder()

const ClassObjectIDMapHolder_T& stdair::TravelSolutionStruct::getClassObjectIDMapHolder ( ) const
inline

Get the holder of object ID's.

Definition at line 38 of file TravelSolutionStruct.hpp.

◆ getClassYieldMapHolder()

const ClassYieldMapHolder_T& stdair::TravelSolutionStruct::getClassYieldMapHolder ( ) const
inline

Get the holder of yields.

Definition at line 43 of file TravelSolutionStruct.hpp.

◆ getBidPriceVectorHolder()

const BidPriceVectorHolder_T& stdair::TravelSolutionStruct::getBidPriceVectorHolder ( ) const
inline

Get the holder of bid price vectors.

Definition at line 48 of file TravelSolutionStruct.hpp.

◆ getClassBpvMapHolder()

const ClassBpvMapHolder_T& stdair::TravelSolutionStruct::getClassBpvMapHolder ( ) const
inline

Get the holder of class - bid price reference.

Definition at line 53 of file TravelSolutionStruct.hpp.

◆ getFareOptionList()

const FareOptionList_T& stdair::TravelSolutionStruct::getFareOptionList ( ) const
inline

Get the list of fare options.

Definition at line 58 of file TravelSolutionStruct.hpp.

◆ getFareOptionListRef()

FareOptionList_T& stdair::TravelSolutionStruct::getFareOptionListRef ( )
inline

Get the non-const list of fare options.

Definition at line 63 of file TravelSolutionStruct.hpp.

◆ getChosenFareOption()

const FareOptionStruct& stdair::TravelSolutionStruct::getChosenFareOption ( ) const
inline

Get the chosen fare option.

Definition at line 68 of file TravelSolutionStruct.hpp.

◆ addSegment()

void stdair::TravelSolutionStruct::addSegment ( const std::string &  iKey)

Add a segment key to the segment path.

Definition at line 160 of file TravelSolutionStruct.cpp.

◆ addClassAvailabilityMap()

void stdair::TravelSolutionStruct::addClassAvailabilityMap ( const ClassAvailabilityMap_T iClassAvlMap)

Add a class availability map.

Definition at line 166 of file TravelSolutionStruct.cpp.

◆ addClassObjectIDMap()

void stdair::TravelSolutionStruct::addClassObjectIDMap ( const ClassObjectIDMap_T iMap)

Add a class object ID map.

Definition at line 173 of file TravelSolutionStruct.cpp.

◆ addClassYieldMap()

void stdair::TravelSolutionStruct::addClassYieldMap ( const ClassYieldMap_T iMap)

Add a class yield map.

Definition at line 179 of file TravelSolutionStruct.cpp.

◆ addBidPriceVector()

void stdair::TravelSolutionStruct::addBidPriceVector ( const BidPriceVector_T iBpv)

Add a bid price vector.

Definition at line 185 of file TravelSolutionStruct.cpp.

◆ addClassBpvMap()

void stdair::TravelSolutionStruct::addClassBpvMap ( const ClassBpvMap_T iMap)

Add a class bpv reference map.

Definition at line 191 of file TravelSolutionStruct.cpp.

◆ addFareOption()

void stdair::TravelSolutionStruct::addFareOption ( const FareOptionStruct iFareOption)

Add a fare option.

Definition at line 197 of file TravelSolutionStruct.cpp.

◆ setChosenFareOption()

void stdair::TravelSolutionStruct::setChosenFareOption ( const FareOptionStruct iChosenFO)
inline

Set the chosen fare option.

Definition at line 97 of file TravelSolutionStruct.hpp.

◆ toStream()

void stdair::TravelSolutionStruct::toStream ( std::ostream &  ioOut) const

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Definition at line 38 of file TravelSolutionStruct.cpp.

References describe().

◆ fromStream()

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

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Reimplemented from stdair::StructAbstract.

Definition at line 43 of file TravelSolutionStruct.cpp.

◆ describe()

const std::string stdair::TravelSolutionStruct::describe ( ) const
virtual

Display of the structure.

Implements stdair::StructAbstract.

Definition at line 68 of file TravelSolutionStruct.cpp.

References stdair::FareOptionStruct::describe(), stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().

Referenced by toStream().

◆ display()

const std::string stdair::TravelSolutionStruct::display ( ) const

◆ describeSegmentPath()

const std::string stdair::TravelSolutionStruct::describeSegmentPath ( ) const

Display only the segment path.

Definition at line 47 of file TravelSolutionStruct.cpp.

References stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().


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