StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
CancellationStruct.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
2 #define __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 #include <vector>
11 // StdAir
17 
18 namespace stdair {
19 
24  public:
25  // /////////// Getters ///////////////
27  const SegmentPath_T& getSegmentPath() const {
28  return _segmentPath;
29  }
30 
33  return _classList;
34  }
35 
38  return _classIDList;
39  }
40 
42  const PartySize_T& getPartySize() const {
43  return _partySize;
44  }
45 
48  return _datetime;
49  }
50 
51  public:
52  // /////////// Display support method /////////////
58  void toStream (std::ostream& ioOut) const;
59 
64  void fromStream (std::istream& ioIn);
65 
69  const std::string describe() const;
70 
74  const std::string display() const;
75 
76 
77  public:
78  // //////////// Constructors & Destructor ///////////////
83  const PartySize_T&, const DateTime_T&);
84 
89  const PartySize_T&, const DateTime_T&);
90 
95 
96 
97  private:
98  // ///////////////////// Attributes //////////////////////
102  SegmentPath_T _segmentPath;
103 
107  ClassList_String_T _classList;
108 
112  BookingClassIDList_T _classIDList;
113 
117  PartySize_T _partySize;
118 
122  DateTime_T _datetime;
123  };
124 
125 }
126 #endif // __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
const DateTime_T & getCancellationDateTime() const
const BookingClassIDList_T & getClassIDList() const
const PartySize_T & getPartySize() const
boost::posix_time::ptime DateTime_T
Handle on the StdAir library context.
void fromStream(std::istream &ioIn)
const ClassList_String_T & getClassList() const
std::list< BookingClassID_T > BookingClassIDList_T
Definition: BomIDTypes.hpp:24
Base class for the light structures.
const SegmentPath_T & getSegmentPath() const
const std::string display() const
const std::string describe() const
CancellationStruct(const SegmentPath_T &, const ClassList_String_T &, const PartySize_T &, const DateTime_T &)
std::string ClassList_String_T
void toStream(std::ostream &ioOut) const
Structure holding the elements of a travel solution.
KeyList_T SegmentPath_T