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
11
#include <
stdair/stdair_inventory_types.hpp
>
12
#include <
stdair/bom/KeyAbstract.hpp
>
13
15
namespace
boost
{
16
namespace
serialization {
17
class
access;
18
}
19
}
20
21
namespace
stdair
{
22
26
struct
BucketKey
:
public
KeyAbstract
{
27
friend
class
boost::serialization::access
;
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
Key of booking-class.
Definition:
BucketKey.hpp:26
stdair::BucketKey::getSeatIndex
const SeatIndex_T & getSeatIndex() const
Definition:
BucketKey.hpp:54
stdair::BucketKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition:
BucketKey.cpp:67
stdair::BucketKey::access
friend class boost::serialization::access
Definition:
BucketKey.hpp:27
stdair::SeatIndex_T
unsigned int SeatIndex_T
Definition:
stdair_inventory_types.hpp:131
stdair::BucketKey::toString
const std::string toString() const
Definition:
BucketKey.cpp:45
stdair::BucketKey::fromStream
void fromStream(std::istream &ioIn)
Definition:
BucketKey.cpp:41
stdair_inventory_types.hpp
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition:
KeyAbstract.hpp:27
stdair::BucketKey::~BucketKey
~BucketKey()
Definition:
BucketKey.cpp:32
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::BucketKey::toStream
void toStream(std::ostream &ioOut) const
Definition:
BucketKey.cpp:36
boost
Forward declarations.
Definition:
AirlineClassList.hpp:16
KeyAbstract.hpp
Generated for StdAir by
1.8.16