StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AirlineFeature.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 // StdAir
9 
10 namespace stdair {
11 
12  // ////////////////////////////////////////////////////////////////////
13  AirlineFeature::AirlineFeature (const Key_T& iKey) : _key (iKey) {
14  }
15 
16  // ////////////////////////////////////////////////////////////////////
18  }
19 
20  // ////////////////////////////////////////////////////////////////////
21  void AirlineFeature::init (const ForecasterMode_T& iForecastMode,
22  const HistoricalDataLimit_T& iHistoricalDataLimit,
23  const ControlMode_T& iControlMode) {
24  _forecasterMode = iForecastMode;
25  _historicalDataLimit = iHistoricalDataLimit;
26  _controlMode = iControlMode;
27  }
28 
29  // ////////////////////////////////////////////////////////////////////
30  std::string AirlineFeature::toString() const {
31  std::ostringstream ostr;
32  ostr << describeKey()
33  << ", " << _forecasterMode
34  << ", " << _historicalDataLimit
35  << ", " << _controlMode;
36  return ostr.str();
37  }
38 
39 }
40