20 : _classPath (iFO._classPath),
21 _fare (iFO._fare), _avl (iFO._avl), _changeFee (iFO._changeFee),
22 _nonRefundable (iFO._nonRefundable), _saturdayStay (iFO._saturdayStay) {
32 _changeFee (iChangeFee), _nonRefundable (iNonRefundable),
33 _saturdayStay (iSaturdayNightStay) {
34 _classPath.push_back (iClassPath);
52 std::ostringstream oStr;
54 oStr <<
"Class path: ";
55 unsigned short idx = 0;
56 for (ClassList_StringList_T::const_iterator itClassPath =
57 _classPath.begin(); itClassPath != _classPath.end();
58 ++itClassPath, ++idx) {
62 const std::string& lClassPath = *itClassPath;
66 oStr <<
"; " << _fare <<
" EUR";
67 oStr <<
"; conditions: " << _changeFee <<
" " << _nonRefundable
68 <<
" " << _saturdayStay;
74 std::ostringstream oStr;
76 unsigned short idx = 0;
77 for (ClassList_StringList_T::const_iterator itClassPath =
78 _classPath.begin(); itClassPath != _classPath.end();
79 ++itClassPath, ++idx) {
83 const std::string& lClassPath = *itClassPath;
87 oStr <<
", " << _fare <<
", " << _changeFee <<
" " << _nonRefundable
88 <<
" " << _saturdayStay;
94 _classPath.push_back (iClassCodeList);
const std::string display() const
Structure holding the elements of a fare option.
const std::string describe() const
Handle on the StdAir library context.
const Availability_T DEFAULT_AVAILABILITY
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
void addClassList(const std::string)
const Fare_T DEFAULT_FARE_VALUE