StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
16 
17 namespace stdair {
18 
23  public:
24  // /////////// Getters ///////////////
26  const SegmentPath_T& getSegmentPath() const {
27  return _segmentPath;
28  }
29 
32  return _classList;
33  }
34 
36  const PartySize_T& getPartySize() const {
37  return _partySize;
38  }
39 
42  return _datetime;
43  }
44 
45  public:
46  // /////////// Display support method /////////////
52  void toStream (std::ostream& ioOut) const;
53 
58  void fromStream (std::istream& ioIn);
59 
63  const std::string describe() const;
64 
68  const std::string display() const;
69 
70 
71  public:
72  // //////////// Constructors & Destructor ///////////////
77  const PartySize_T&, const DateTime_T&);
78 
83 
84 
85  private:
86  // ///////////////////// Attributes //////////////////////
90  SegmentPath_T _segmentPath;
91 
95  ClassList_String_T _classList;
96 
100  PartySize_T _partySize;
101 
105  DateTime_T _datetime;
106  };
107 
108 }
109 #endif // __STDAIR_BOM_CANCELLATIONSTRUCT_HPP