AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
LegCabinStruct.cpp
Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <cassert>
00006 #include <sstream>
00007 // STDAIR
00008 #include <stdair/bom/LegCabin.hpp>
00009 // AIRSCHED
00010 #include <airsched/bom/LegCabinStruct.hpp>
00011 
00012 namespace AIRSCHED {
00013 
00014   // //////////////////////////////////////////////////////////////////////
00015   const std::string LegCabinStruct::describe() const {
00016     std::ostringstream ostr;
00017     ostr << "        " << _cabinCode << " " << _capacity << ", ";
00018     return ostr.str();
00019   }
00020 
00021   // //////////////////////////////////////////////////////////////////////
00022   void LegCabinStruct::fill (stdair::LegCabin& ioLegCabin) const {
00023     // Set the Capacity
00024     ioLegCabin.setCapacities (_capacity);
00025   }
00026 
00027 }