00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <cassert> 00006 // StdAir 00007 #include <stdair/stdair_types.hpp> 00008 #include <stdair/bom/AirlineFeature.hpp> 00009 00010 namespace stdair { 00011 00012 // //////////////////////////////////////////////////////////////////// 00013 AirlineFeature::AirlineFeature (const Key_T& iKey) : _key (iKey) { 00014 } 00015 00016 // //////////////////////////////////////////////////////////////////// 00017 AirlineFeature::~AirlineFeature () { 00018 } 00019 00020 // //////////////////////////////////////////////////////////////////// 00021 void AirlineFeature::init (const ForecasterMode_T& iForecastMode, 00022 const HistoricalDataLimit_T& iHistoricalDataLimit, 00023 const ControlMode_T& iControlMode) { 00024 _forecasterMode = iForecastMode; 00025 _historicalDataLimit = iHistoricalDataLimit; 00026 _controlMode = iControlMode; 00027 } 00028 00029 // //////////////////////////////////////////////////////////////////// 00030 std::string AirlineFeature::toString() const { 00031 std::ostringstream ostr; 00032 ostr << describeKey() 00033 << ", " << _forecasterMode 00034 << ", " << _historicalDataLimit 00035 << ", " << _controlMode; 00036 return ostr.str(); 00037 } 00038 00039 } 00040