1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
NestingNode.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_NESTINGNODE_HPP
2
#define __STDAIR_BOM_NESTINGNODE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <cmath>
9
// StdAir
10
#include <
stdair/stdair_basic_types.hpp
>
11
#include <
stdair/stdair_rm_types.hpp
>
12
#include <
stdair/bom/BomAbstract.hpp
>
13
#include <
stdair/bom/BookingClassTypes.hpp
>
14
#include <
stdair/bom/NestingNodeKey.hpp
>
15
17
namespace
boost {
18
namespace
serialization {
19
class
access;
20
}
21
}
22
23
namespace
stdair {
24
29
class
NestingNode
:
public
BomAbstract
{
30
template
<
typename
BOM>
friend
class
FacBom
;
31
friend
class
FacBomManager
;
32
friend
class
boost::serialization::access
;
33
34
public
:
35
// ////////// Type definitions ////////////
39
typedef
NestingNodeKey
Key_T
;
40
41
public
:
42
// /////////////////// Getters ////////////////////////
44
const
Key_T
&
getKey
()
const
{
45
return
_key;
46
}
47
49
BomAbstract
*
const
getParent
()
const
{
50
return
_parent;
51
}
52
56
const
HolderMap_T
&
getHolderMap
()
const
{
57
return
_holderMap;
58
}
59
61
const
Yield_T
&
getYield
()
const
{
62
return
_yield;
63
}
64
65
public
:
66
// ///////////////////// Setters /////////////////////
68
void
setYield
(
const
Yield_T
& iYield) {
69
_yield = iYield;
70
}
71
72
73
public
:
74
// /////////// Display support methods /////////
80
void
toStream
(std::ostream& ioOut)
const
{
81
ioOut <<
toString
();
82
}
83
89
void
fromStream
(std::istream& ioIn) {
90
}
91
95
std::string
toString
()
const
;
96
100
const
std::string
describeKey
()
const
{
101
return
_key.
toString
();
102
}
103
104
105
public
:
106
// /////////// (Boost) Serialisation support methods /////////
110
template
<
class
Archive>
111
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
112
113
private
:
121
void
serialisationImplementationExport()
const
;
122
void
serialisationImplementationImport();
123
124
125
protected
:
126
// /////////// Constructors and destructor. ////////////
130
NestingNode
(
const
Key_T
&);
131
135
virtual
~NestingNode
();
136
137
private
:
141
NestingNode
();
142
146
NestingNode
(
const
NestingNode
&);
147
148
149
private
:
150
// //////////// Attributes ////////////
154
Key_T
_key;
155
159
BomAbstract
* _parent;
160
164
HolderMap_T
_holderMap;
165
169
Yield_T
_yield;
170
171
};
172
}
173
#endif // __STDAIR_BOM_NESTINGNODE_HPP
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1