1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
InventoryKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_INVENTORYKEY_HPP
2
#define __STDAIR_BOM_INVENTORYKEY_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
InventoryKey :
public
KeyAbstract
{
27
friend
class
boost::serialization::access
;
28
29
// /////////// Constructors and destructors ///////////
30
private
:
34
InventoryKey();
35
36
public
:
37
// /////////// Construction ///////////
41
InventoryKey (
const
AirlineCode_T
& iAirlineCode);
42
46
InventoryKey (
const
InventoryKey&);
47
51
~InventoryKey
();
52
53
54
// /////////// Getters //////////
58
const
AirlineCode_T
&
getAirlineCode
()
const
{
59
return
_airlineCode;
60
}
61
62
63
public
:
64
// /////////// Display support methods /////////
70
void
toStream
(std::ostream& ioOut)
const
;
71
77
void
fromStream
(std::istream& ioIn);
78
88
const
std::string
toString
()
const
;
89
90
91
public
:
92
// /////////// (Boost) Serialisation support methods /////////
96
template
<
class
Archive>
97
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
98
99
private
:
104
void
serialisationImplementationExport()
const
;
105
void
serialisationImplementationImport();
106
107
108
private
:
109
// ///////////////// Attributes ///////////////
113
AirlineCode_T
_airlineCode;
114
};
115
116
}
117
#endif
// __STDAIR_BOM_INVENTORYKEY_HPP
KeyAbstract.hpp
stdair_inventory_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::AirlineCode_T
std::string AirlineCode_T
Definition
stdair_basic_types.hpp:31
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
stdair::InventoryKey::toStream
void toStream(std::ostream &ioOut) const
Definition
InventoryKey.cpp:37
stdair::InventoryKey::toString
const std::string toString() const
Definition
InventoryKey.cpp:46
stdair::InventoryKey::~InventoryKey
~InventoryKey()
Definition
InventoryKey.cpp:33
stdair::InventoryKey::fromStream
void fromStream(std::istream &ioIn)
Definition
InventoryKey.cpp:42
stdair::InventoryKey::access
friend class boost::serialization::access
Definition
InventoryKey.hpp:27
stdair::InventoryKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
InventoryKey.cpp:68
stdair::InventoryKey::getAirlineCode
const AirlineCode_T & getAirlineCode() const
Definition
InventoryKey.hpp:58
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition
KeyAbstract.hpp:27
Generated for StdAir by
1.17.0