$treeview $search $mathjax
StdAir Logo  1.00.2
$projectbrief
$projectbrief
$searchbox

stdair/bom/NestingNode.cpp

Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <sstream>
00006 #include <cassert>
00007 #include <iomanip>
00008 #include <iostream>
00009 //STDAIR
00010 #include <stdair/basic/BasConst_Inventory.hpp>
00011 #include <stdair/bom/BomManager.hpp> 
00012 #include <stdair/bom/BookingClass.hpp>
00013 #include <stdair/bom/BookingClassTypes.hpp>
00014 #include <stdair/bom/NestingNode.hpp>
00015 
00016 namespace stdair {
00017     
00018   // ////////////////////////////////////////////////////////////////////
00019   NestingNode::NestingNode () : 
00020     _key (DEFAULT_NESTING_NODE_CODE), _parent (NULL) {
00021     assert (false);
00022   }
00023 
00024   // ////////////////////////////////////////////////////////////////////
00025   NestingNode::NestingNode (const NestingNode& iNestingNode)
00026   : _key (DEFAULT_NESTING_NODE_CODE), _parent (NULL) {
00027     assert (false);
00028   }
00029 
00030   // ////////////////////////////////////////////////////////////////////
00031   NestingNode::NestingNode (const Key_T& iKey) : _key (iKey), _parent (NULL) {
00032   }
00033     
00034   // ////////////////////////////////////////////////////////////////////
00035   NestingNode::~NestingNode() {
00036   }
00037     
00038   // ////////////////////////////////////////////////////////////////////
00039   std::string NestingNode::toString () const {
00040     std::ostringstream oStr;
00041     oStr << describeKey();
00042     
00043     oStr << _yield << std::endl;
00044     
00045     return oStr.str();
00046   }
00047   
00048 }