StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
BucketKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_BUCKETKEY_HPP
2 #define __STDAIR_BOM_BUCKETKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // StdAir
13 
15 namespace boost {
16  namespace serialization {
17  class access;
18  }
19 }
20 
21 namespace stdair {
22 
26  struct BucketKey : public KeyAbstract {
28 
29  // /////////// Constructors and destructors ///////////
30  private:
34  BucketKey();
35 
36  public:
40  BucketKey (const SeatIndex_T&);
44  BucketKey (const BucketKey&);
48  ~BucketKey();
49 
50 
51  public:
52  // /////////// Getters //////////
54  const SeatIndex_T& getSeatIndex() const {
55  return _seatIndex;
56  }
57 
58 
59  public:
60  // /////////// Display support methods /////////
66  void toStream (std::ostream& ioOut) const;
67 
73  void fromStream (std::istream& ioIn);
74 
84  const std::string toString() const;
85 
86 
87  public:
88  // /////////// (Boost) Serialisation support methods /////////
92  template<class Archive>
93  void serialize (Archive& ar, const unsigned int iFileVersion);
94 
95  private:
100  void serialisationImplementationExport() const;
101  void serialisationImplementationImport();
102 
103 
104  private:
105  // ///////////////// Attributes ///////////////
109  SeatIndex_T _seatIndex;
110  };
111 
112 }
113 #endif // __STDAIR_BOM_BUCKETKEY_HPP
stdair::BucketKey::getSeatIndex
const SeatIndex_T & getSeatIndex() const
Definition: BucketKey.hpp:54
stdair::SeatIndex_T
unsigned int SeatIndex_T
Definition: stdair_inventory_types.hpp:131
stdair_inventory_types.hpp
stdair::BucketKey::toStream
void toStream(std::ostream &ioOut) const
Definition: BucketKey.cpp:36
stdair::BucketKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition: BucketKey.cpp:67
stdair::BucketKey::toString
const std::string toString() const
Definition: BucketKey.cpp:45
stdair::BucketKey::~BucketKey
~BucketKey()
Definition: BucketKey.cpp:32
stdair::BucketKey::fromStream
void fromStream(std::istream &ioIn)
Definition: BucketKey.cpp:41
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
boost
Forward declarations.
Definition: AirlineClassList.hpp:16
KeyAbstract.hpp
stdair::BucketKey
Key of booking-class.
Definition: BucketKey.hpp:26
stdair::BucketKey::access
friend class boost::serialization::access
Definition: BucketKey.hpp:27