Structure holding the elements of a fare option. More...
#include <stdair/bom/FareOptionStruct.hpp>
Public Member Functions | |
const ClassList_StringList_T & | getClassPath () const |
const Fare_T & | getFare () const |
const Availability_T & | getAvailability () const |
const ChangeFees_T | getChangeFees () const |
const NonRefundable_T | getNonRefundable () const |
const SaturdayStay_T | getSaturdayStay () const |
void | addClassList (const std::string) |
void | emptyClassList () |
void | setFare (const Fare_T &iFare) |
void | setAvailability (const Availability_T &iAvl) |
void | setChangeFees (const ChangeFees_T iRes) |
void | setNonRefundable (const NonRefundable_T iRes) |
void | setSaturdayStay (const SaturdayStay_T iRes) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | describe () const |
const std::string | display () const |
FareOptionStruct () | |
FareOptionStruct (const std::string &iClassPath, const Fare_T &, const ChangeFees_T &, const NonRefundable_T &, const SaturdayStay_T &) | |
FareOptionStruct (const FareOptionStruct &) | |
~FareOptionStruct () | |
Structure holding the elements of a fare option.
Definition at line 20 of file FareOptionStruct.hpp.
stdair::FareOptionStruct::FareOptionStruct | ( | ) |
Default constructor.
Definition at line 14 of file FareOptionStruct.cpp.
stdair::FareOptionStruct::FareOptionStruct | ( | const std::string & | iClassPath, |
const Fare_T & | iFare, | ||
const ChangeFees_T & | iChangeFee, | ||
const NonRefundable_T & | iNonRefundable, | ||
const SaturdayStay_T & | iSaturdayNightStay | ||
) |
Main constructor.
Definition at line 26 of file FareOptionStruct.cpp.
stdair::FareOptionStruct::FareOptionStruct | ( | const FareOptionStruct & | iFO | ) |
Copy constructor.
Definition at line 19 of file FareOptionStruct.cpp.
stdair::FareOptionStruct::~FareOptionStruct | ( | ) |
Destructor.
Definition at line 38 of file FareOptionStruct.cpp.
|
inline |
Get the class-path.
Definition at line 24 of file FareOptionStruct.hpp.
|
inline |
Get the fare value.
Definition at line 29 of file FareOptionStruct.hpp.
|
inline |
Get the availability.
Definition at line 34 of file FareOptionStruct.hpp.
|
inline |
Get the change fees.
Definition at line 39 of file FareOptionStruct.hpp.
|
inline |
State whether the ticket is refundable.
Definition at line 44 of file FareOptionStruct.hpp.
|
inline |
State whether there is a condition on the saturday night stay.
Definition at line 49 of file FareOptionStruct.hpp.
void stdair::FareOptionStruct::addClassList | ( | const std::string | iClassCodeList | ) |
Set the class-path.
Definition at line 93 of file FareOptionStruct.cpp.
void stdair::FareOptionStruct::emptyClassList | ( | ) |
Empty the class-path.
Definition at line 98 of file FareOptionStruct.cpp.
|
inline |
Set the fare value.
Definition at line 63 of file FareOptionStruct.hpp.
|
inline |
Set the availability.
Definition at line 68 of file FareOptionStruct.hpp.
|
inline |
Set the change fees.
Definition at line 73 of file FareOptionStruct.hpp.
|
inline |
Set the flag for the ticket refundability.
Definition at line 78 of file FareOptionStruct.hpp.
|
inline |
Set the flag for the saturday night stay condition.
Definition at line 83 of file FareOptionStruct.hpp.
void stdair::FareOptionStruct::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Definition at line 42 of file FareOptionStruct.cpp.
References describe().
|
virtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 47 of file FareOptionStruct.cpp.
|
virtual |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 51 of file FareOptionStruct.cpp.
Referenced by stdair::TravelSolutionStruct::describe(), and toStream().
const std::string stdair::FareOptionStruct::display | ( | ) | const |
Display of the structure.
Definition at line 73 of file FareOptionStruct.cpp.
Referenced by stdair::TravelSolutionStruct::display().