Structure holding the elements of a travel solution. More...
#include <stdair/bom/TravelSolutionStruct.hpp>
Structure holding the elements of a travel solution.
Definition at line 24 of file TravelSolutionStruct.hpp.
stdair::TravelSolutionStruct::TravelSolutionStruct | ( | ) |
Default constructor.
Definition at line 15 of file TravelSolutionStruct.cpp.
stdair::TravelSolutionStruct::~TravelSolutionStruct | ( | ) |
Destructor.
Definition at line 19 of file TravelSolutionStruct.cpp.
const SegmentPath_T& stdair::TravelSolutionStruct::getSegmentPath | ( | ) | const [inline] |
Get the segment path.
Definition at line 28 of file TravelSolutionStruct.hpp.
const ClassAvailabilityMapHolder_T& stdair::TravelSolutionStruct::getClassAvailabilityMapHolder | ( | ) | const [inline] |
Get the holder of avalabilities.
Definition at line 33 of file TravelSolutionStruct.hpp.
const ClassYieldMapHolder_T& stdair::TravelSolutionStruct::getClassYieldMapHolder | ( | ) | const [inline] |
Get the holder of yields.
Definition at line 38 of file TravelSolutionStruct.hpp.
const BidPriceVectorHolder_T& stdair::TravelSolutionStruct::getBidPriceVectorHolder | ( | ) | const [inline] |
Get the holder of bid price vectors.
Definition at line 43 of file TravelSolutionStruct.hpp.
const ClassBpvMapHolder_T& stdair::TravelSolutionStruct::getClassBpvMapHolder | ( | ) | const [inline] |
Get the holder of class - bid price reference.
Definition at line 48 of file TravelSolutionStruct.hpp.
const FareOptionList_T& stdair::TravelSolutionStruct::getFareOptionList | ( | ) | const [inline] |
Get the list of fare options.
Definition at line 53 of file TravelSolutionStruct.hpp.
FareOptionList_T& stdair::TravelSolutionStruct::getFareOptionListRef | ( | ) | [inline] |
Get the non-const list of fare options.
Definition at line 58 of file TravelSolutionStruct.hpp.
const FareOptionStruct& stdair::TravelSolutionStruct::getChosenFareOption | ( | ) | const [inline] |
Get the chosen fare option.
Definition at line 63 of file TravelSolutionStruct.hpp.
void stdair::TravelSolutionStruct::addSegment | ( | const std::string & | iKey | ) |
Add a segment key to the segment path.
Definition at line 133 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassAvailabilityMap | ( | const ClassAvailabilityMap_T & | iMap | ) |
Add a class availability map.
Definition at line 139 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassYieldMap | ( | const ClassYieldMap_T & | iMap | ) |
Add a class yield map.
Definition at line 145 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addBidPriceVector | ( | const BidPriceVector_T & | iBpv | ) |
Add a bid price vector.
Definition at line 151 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassBpvMap | ( | const ClassBpvMap_T & | iMap | ) |
Add a class bpv reference map.
Definition at line 157 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addFareOption | ( | const FareOptionStruct & | iFareOption | ) |
Add a fare option.
Definition at line 163 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::setChosenFareOption | ( | const FareOptionStruct & | iChosenFO | ) | [inline] |
Set the chosen fare option.
Definition at line 89 of file TravelSolutionStruct.hpp.
void stdair::TravelSolutionStruct::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 23 of file TravelSolutionStruct.cpp.
References describe().
void stdair::TravelSolutionStruct::fromStream | ( | std::istream & | ioIn | ) | [virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 28 of file TravelSolutionStruct.cpp.
const std::string stdair::TravelSolutionStruct::describe | ( | ) | const [virtual] |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 32 of file TravelSolutionStruct.cpp.
References stdair::FareOptionStruct::describe(), stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().
Referenced by toStream().
const std::string stdair::TravelSolutionStruct::display | ( | ) | const |
Display of the structure.
Definition at line 74 of file TravelSolutionStruct.cpp.
References stdair::FareOptionStruct::display(), stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().