StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
ClassAvailabilityStruct.hpp
Go to the documentation of this file.
1#ifndef __STDAIR_BOM_CLASSAVAILABILITYSTRUCT_HPP
2#define __STDAIR_BOM_CLASSAVAILABILITYSTRUCT_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STL
8#include <iosfwd>
9#include <string>
10#include <list>
11#include <map>
12// StdAir
15
16namespace stdair {
17
21 typedef std::map<const ClassCode_T, Availability_T> ClassAvailabilityMap_T;
22
27 typedef std::list<ClassAvailabilityStruct> ClassAvailabilityMapHolder_T;
28
33 public:
34 // /////////// Getters ///////////////
36 return _classAvailabilityStruct;
37 }
38
39 public:
40 // /////////// Display support method /////////////
46 void toStream (std::ostream& ioOut) const;
47
52 void fromStream (std::istream& ioIn);
53
57 const std::string describe() const;
58
62 const std::string display() const;
63
64
65 public:
66 // //////////// Constructors & Destructor ///////////////
71
76
81
86
87
88 private:
89 // ///////////////////// Attributes //////////////////////
93 ClassAvailabilityMap_T _classAvailabilityStruct;
94 };
95
96}
97#endif // __STDAIR_BOM_CLASSAVAILABILITYSTRUCT_HPP
Handle on the StdAir library context.
std::map< const ClassCode_T, Availability_T > ClassAvailabilityMap_T
std::list< ClassAvailabilityStruct > ClassAvailabilityMapHolder_T
Structure holding the elements of a travel solution.
ClassAvailabilityStruct(const ClassAvailabilityMap_T &)
const ClassAvailabilityMap_T & getClassAvailabilityMap() const
void toStream(std::ostream &ioOut) const