StdAir Logo  1.00.13
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
15
16namespace 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 // ////////////////////////////////////////////////////////////////////
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}
Handle on the StdAir library context.
const NestingNodeCode_T DEFAULT_NESTING_NODE_CODE
const std::string describeKey() const
std::string toString() const
Key of a given policy, made of a policy code.