StdAir Logo  1.00.12
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
18namespace stdair {
19
24 public:
25 // /////////// Getters ///////////////
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
Handle on the StdAir library context.
boost::posix_time::ptime DateTime_T
std::list< BookingClassID_T > BookingClassIDList_T
Definition: BomIDTypes.hpp:24
KeyList_T SegmentPath_T
std::string ClassList_String_T
Base class for the light structures.
Structure holding the elements of a travel solution.
const std::string display() const
void toStream(std::ostream &ioOut) const
void fromStream(std::istream &ioIn)
CancellationStruct(const SegmentPath_T &, const ClassList_String_T &, const PartySize_T &, const DateTime_T &)
const PartySize_T & getPartySize() const
const std::string describe() const
const BookingClassIDList_T & getClassIDList() const
const ClassList_String_T & getClassList() const
const SegmentPath_T & getSegmentPath() const
const DateTime_T & getCancellationDateTime() const