1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
SimpleNestingStructure.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_SIMPLENESTINGSTRUCTURE_HPP
2
#define __STDAIR_BOM_SIMPLENESTINGSTRUCTURE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// StdAir
8
#include <
stdair/stdair_basic_types.hpp
>
9
#include <
stdair/bom/BomAbstract.hpp
>
10
#include <
stdair/bom/NestingNodeTypes.hpp
>
11
#include <
stdair/bom/SimpleNestingStructureTypes.hpp
>
12
#include <
stdair/bom/NestingStructureKey.hpp
>
13
15
namespace
boost
{
16
namespace
serialization
{
17
class
access;
18
}
19
}
20
21
namespace
stdair
{
22
26
class
SimpleNestingStructure
:
public
BomAbstract
{
27
template
<
typename
BOM>
friend
class
FacBom
;
28
friend
class
FacBomManager
;
29
friend
class
boost::serialization::access
;
30
31
public
:
32
// ////////// Type definitions ////////////
36
typedef
NestingStructureKey
Key_T
;
37
38
public
:
39
// /////////////////// Getters ////////////////////////
41
const
Key_T
&
getKey
()
const
{
42
return
_key;
43
}
44
46
BomAbstract
*
const
getParent
()
const
{
47
return
_parent;
48
}
49
53
const
HolderMap_T
&
getHolderMap
()
const
{
54
return
_holderMap;
55
}
56
60
const
NestingNodeList_T
&
getNestingNodeList
()
const
;
61
62
public
:
63
// /////////// Display support methods /////////
69
void
toStream
(std::ostream& ioOut)
const
{
70
ioOut <<
toString
();
71
}
72
78
void
fromStream
(std::istream& ioIn) {
79
}
80
84
std::string
toString
()
const
;
85
89
const
std::string
describeKey
()
const
{
90
return
_key.toString();
91
}
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
:
110
void
serialisationImplementationExport()
const
;
111
void
serialisationImplementationImport();
112
113
114
public
:
115
// /////////// Constructors and destructor. ////////////
119
SimpleNestingStructure
(
const
Key_T
&);
120
124
virtual
~SimpleNestingStructure
();
125
126
private
:
130
SimpleNestingStructure
();
131
135
SimpleNestingStructure
(
const
SimpleNestingStructure
&);
136
137
private
:
141
Key_T
_key;
142
146
BomAbstract
* _parent;
147
151
HolderMap_T
_holderMap;
152
};
153
}
154
#endif
// __STDAIR_BOM_SIMPLENESTINGSTRUCTURE_HPP
BomAbstract.hpp
NestingNodeTypes.hpp
NestingStructureKey.hpp
SimpleNestingStructureTypes.hpp
stdair_basic_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::NestingNodeList_T
std::list< NestingNode * > NestingNodeList_T
Definition
NestingNodeTypes.hpp:20
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
stdair::NestingStructureKey
Key of a given policy, made of a policy code.
Definition
NestingStructureKey.hpp:26
stdair::SimpleNestingStructure::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
stdair::SimpleNestingStructure::getKey
const Key_T & getKey() const
Definition
SimpleNestingStructure.hpp:41
stdair::SimpleNestingStructure::fromStream
void fromStream(std::istream &ioIn)
Definition
SimpleNestingStructure.hpp:78
stdair::SimpleNestingStructure::getParent
BomAbstract *const getParent() const
Definition
SimpleNestingStructure.hpp:46
stdair::SimpleNestingStructure::getNestingNodeList
const NestingNodeList_T & getNestingNodeList() const
Definition
SimpleNestingStructure.cpp:115
stdair::SimpleNestingStructure::toString
std::string toString() const
Definition
SimpleNestingStructure.cpp:107
stdair::SimpleNestingStructure::SimpleNestingStructure
SimpleNestingStructure(const Key_T &)
Definition
SimpleNestingStructure.cpp:36
stdair::SimpleNestingStructure::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
SimpleNestingStructure.hpp:53
stdair::SimpleNestingStructure::~SimpleNestingStructure
virtual ~SimpleNestingStructure()
Definition
SimpleNestingStructure.cpp:41
stdair::SimpleNestingStructure::toStream
void toStream(std::ostream &ioOut) const
Definition
SimpleNestingStructure.hpp:69
stdair::SimpleNestingStructure::FacBom
friend class FacBom
Definition
SimpleNestingStructure.hpp:27
stdair::SimpleNestingStructure::Key_T
NestingStructureKey Key_T
Definition
SimpleNestingStructure.hpp:36
stdair::SimpleNestingStructure::access
friend class boost::serialization::access
Definition
SimpleNestingStructure.hpp:29
stdair::SimpleNestingStructure::FacBomManager
friend class FacBomManager
Definition
SimpleNestingStructure.hpp:28
stdair::SimpleNestingStructure::describeKey
const std::string describeKey() const
Definition
SimpleNestingStructure.hpp:89
Generated for StdAir by
1.17.0