AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FRAT5Struct.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/service/Logger.hpp>
9 // AIRINV
11 
12 namespace AIRINV {
13 
14  // ////////////////////////////////////////////////////////////////////
16  }
17 
18  // ////////////////////////////////////////////////////////////////////
20  }
21 
22  // ////////////////////////////////////////////////////////////////////
23  const std::string FRAT5Struct::describe() const {
24  std::ostringstream oStr;
25  oStr << _key << "; ";
26  for (stdair::FRAT5Curve_T::const_reverse_iterator itFRAT5 = _curve.rbegin();
27  itFRAT5 != _curve.rend(); ++itFRAT5) {
28  const stdair::DTD_T& lDTD = itFRAT5->first;
29  const double& lFRAT5 = itFRAT5->second;
30  oStr << lDTD << ":" << lFRAT5 << ";";
31  }
32 
33  return oStr.str();
34  }
35 
36 }