StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
AirlineClassListKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRLINECLASSLISTKEY_HPP
2 #define __STDAIR_BOM_AIRLINECLASSLISTKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 // StdAir
12 
14 namespace boost {
15  namespace serialization {
16  class access;
17  }
18 }
19 
20 namespace stdair {
21 
25  struct AirlineClassListKey : public KeyAbstract {
27 
28  // /////////// Constructors and destructors ///////////
29  private:
34 
35  public:
40  const ClassList_StringList_T&);
41 
46 
51 
52 
53  public:
54  // /////////// Getters //////////
57  return _airlineCodeList;
58  }
59 
62  return _classCodeList;
63  }
64 
65 
66  public:
67  // /////////// Display support methods /////////
73  void toStream (std::ostream& ioOut) const;
74 
80  void fromStream (std::istream& ioIn);
81 
91  const std::string toString() const;
92 
93 
94  public:
95  // /////////// (Boost) Serialisation support methods /////////
99  template<class Archive>
100  void serialize (Archive& ar, const unsigned int iFileVersion);
101 
102  private:
107  void serialisationImplementationExport() const;
108  void serialisationImplementationImport();
109 
110 
111  private:
112  // ///////////////// Attributes ///////////////
116  AirlineCodeList_T _airlineCodeList;
117 
121  ClassList_StringList_T _classCodeList;
122  };
123 
124 }
125 #endif // __STDAIR_BOM_AIRLINECLASSLISTKEY_HPP
const ClassList_StringList_T & getClassCodeList() const
friend class boost::serialization::access
std::vector< ClassList_String_T > ClassList_StringList_T
Handle on the StdAir library context.
const std::string toString() const
void fromStream(std::istream &ioIn)
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
std::vector< AirlineCode_T > AirlineCodeList_T
const AirlineCodeList_T & getAirlineCodeList() const
Forward declarations.
void toStream(std::ostream &ioOut) const
void serialize(Archive &ar, const unsigned int iFileVersion)