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.
|
inline |
Get the segment path.
Definition at line 28 of file TravelSolutionStruct.hpp.
|
inline |
Get the holder of avalabilities.
Definition at line 33 of file TravelSolutionStruct.hpp.
|
inline |
Get the holder of object ID's.
Definition at line 38 of file TravelSolutionStruct.hpp.
|
inline |
Get the holder of yields.
Definition at line 43 of file TravelSolutionStruct.hpp.
|
inline |
Get the holder of bid price vectors.
Definition at line 48 of file TravelSolutionStruct.hpp.
|
inline |
Get the holder of class - bid price reference.
Definition at line 53 of file TravelSolutionStruct.hpp.
|
inline |
Get the list of fare options.
Definition at line 58 of file TravelSolutionStruct.hpp.
|
inline |
Get the non-const list of fare options.
Definition at line 63 of file TravelSolutionStruct.hpp.
|
inline |
Get the chosen fare option.
Definition at line 68 of file TravelSolutionStruct.hpp.
void stdair::TravelSolutionStruct::addSegment | ( | const std::string & | iKey | ) |
Add a segment key to the segment path.
Definition at line 154 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassAvailabilityMap | ( | const ClassAvailabilityMap_T & | iMap | ) |
Add a class availability map.
Definition at line 160 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassObjectIDMap | ( | const ClassObjectIDMap_T & | iMap | ) |
Add a class object ID map.
Definition at line 166 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassYieldMap | ( | const ClassYieldMap_T & | iMap | ) |
Add a class yield map.
Definition at line 172 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addBidPriceVector | ( | const BidPriceVector_T & | iBpv | ) |
Add a bid price vector.
Definition at line 178 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addClassBpvMap | ( | const ClassBpvMap_T & | iMap | ) |
Add a class bpv reference map.
Definition at line 184 of file TravelSolutionStruct.cpp.
void stdair::TravelSolutionStruct::addFareOption | ( | const FareOptionStruct & | iFareOption | ) |
Add a fare option.
Definition at line 190 of file TravelSolutionStruct.cpp.
|
inline |
Set the chosen fare option.
Definition at line 97 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().
|
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.
|
virtual |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 53 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 95 of file TravelSolutionStruct.cpp.
References stdair::FareOptionStruct::display(), stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().
const std::string stdair::TravelSolutionStruct::describeSegmentPath | ( | ) | const |
Display only the segment path.
Definition at line 32 of file TravelSolutionStruct.cpp.
References stdair::BomKeyManager::extractKeys(), and stdair::ParsedKey::toString().