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