1.00.15
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
NestingNode.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <sstream>
6
#include <cassert>
7
#include <iomanip>
8
#include <iostream>
9
//STDAIR
10
#include <
stdair/basic/BasConst_Inventory.hpp
>
11
#include <
stdair/bom/BomManager.hpp
>
12
#include <
stdair/bom/BookingClass.hpp
>
13
#include <
stdair/bom/BookingClassTypes.hpp
>
14
#include <
stdair/bom/NestingNode.hpp
>
15
16
namespace
stdair
{
17
18
// ////////////////////////////////////////////////////////////////////
19
NestingNode::NestingNode () :
20
_key (
DEFAULT_NESTING_NODE_CODE
), _parent (NULL) {
21
assert (
false
);
22
}
23
24
// ////////////////////////////////////////////////////////////////////
25
NestingNode::NestingNode (
const
NestingNode& iNestingNode)
26
: _key (
DEFAULT_NESTING_NODE_CODE
), _parent (NULL) {
27
assert (
false
);
28
}
29
30
// ////////////////////////////////////////////////////////////////////
31
NestingNode::NestingNode (
const
Key_T
& iKey) : _key (iKey), _parent (NULL) {
32
}
33
34
// ////////////////////////////////////////////////////////////////////
35
NestingNode::~NestingNode
() {
36
}
37
38
// ////////////////////////////////////////////////////////////////////
39
std::string
NestingNode::toString
()
const
{
40
std::ostringstream oStr;
41
oStr <<
describeKey
();
42
43
oStr << _yield << std::endl;
44
45
return
oStr.str();
46
}
47
48
}
BasConst_Inventory.hpp
BookingClass.hpp
BomManager.hpp
NestingNode.hpp
BookingClassTypes.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DEFAULT_NESTING_NODE_CODE
const NestingNodeCode_T DEFAULT_NESTING_NODE_CODE
stdair::NestingNode::~NestingNode
virtual ~NestingNode()
Definition
NestingNode.cpp:35
stdair::NestingNode::describeKey
const std::string describeKey() const
Definition
NestingNode.hpp:100
stdair::NestingNode::toString
std::string toString() const
Definition
NestingNode.cpp:39
stdair::NestingNodeKey
Key of a given policy, made of a policy code.
Definition
NestingNodeKey.hpp:26
Generated for StdAir by
1.10.0