AirSched Logo  1.00.0
C++ Simulated Airline Schedule Manager Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LegCabinStruct.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 #include <sstream>
7 // STDAIR
8 #include <stdair/bom/LegCabin.hpp>
9 // AIRSCHED
11 
12 namespace AIRSCHED {
13 
14  // //////////////////////////////////////////////////////////////////////
15  const std::string LegCabinStruct::describe() const {
16  std::ostringstream ostr;
17  ostr << " " << _cabinCode << " " << _capacity << ", ";
18  return ostr.str();
19  }
20 
21  // //////////////////////////////////////////////////////////////////////
22  void LegCabinStruct::fill (stdair::LegCabin& ioLegCabin) const {
23  // Set the Capacity
24  ioLegCabin.setCapacities (_capacity);
25  }
26 
27 }
const std::string describe() const
stdair::CabinCapacity_T _capacity
void fill(stdair::LegCabin &) const
stdair::CabinCode_T _cabinCode