$treeview $search $mathjax
00001 #ifndef __STDAIR_BAS_FORECASTINGMETHOD_HPP 00002 #define __STDAIR_BAS_FORECASTINGMETHOD_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <string> 00009 // StdAir 00010 #include <stdair/basic/StructAbstract.hpp> 00011 00012 namespace stdair { 00013 00015 struct ForecastingMethod : public StructAbstract { 00016 public: 00017 typedef enum { 00018 Q_FORECASTING = 0, 00019 HYBRID_FORECASTING, 00020 OLD_QFF, 00021 NEW_QFF, 00022 BASED_FORECASTING, 00023 LAST_VALUE 00024 } EN_ForecastingMethod; 00025 00028 static const std::string& getLabel (const EN_ForecastingMethod&); 00029 00031 static char getMethodLabel (const EN_ForecastingMethod&); 00032 00035 static std::string getMethodLabelAsString (const EN_ForecastingMethod&); 00036 00038 static std::string describeLabels(); 00039 00041 EN_ForecastingMethod getMethod() const; 00042 00045 std::string getMethodAsString() const; 00046 00049 const std::string describe() const; 00050 00051 public: 00053 bool operator== (const EN_ForecastingMethod&) const; 00054 00055 public: 00057 ForecastingMethod (const EN_ForecastingMethod&); 00059 ForecastingMethod (const char iMethod); 00061 ForecastingMethod (const ForecastingMethod&); 00062 00063 private: 00065 ForecastingMethod(); 00066 00067 00068 private: 00070 static const std::string _labels[LAST_VALUE]; 00072 static const char _methodLabels[LAST_VALUE]; 00073 00074 00075 private: 00076 // //////// Attributes ///////// 00078 EN_ForecastingMethod _method; 00079 }; 00080 00081 } 00082 #endif // __STDAIR_BAS_FORECASTINGMETHOD_HPP