14 const std::string ForecastingMethod::_labels[
LAST_VALUE] =
15 {
"AdditivePickUp",
"MultiplicativePickUp" };
18 const char ForecastingMethod::
23 ForecastingMethod::ForecastingMethod()
31 : _method (iForecastingMethod._method) {
37 : _method (iForecastingMethod) {
41 ForecastingMethod::ForecastingMethod (
const char iMethod) {
43 case 'A': _method =
ADD_PK;
break;
44 case 'M': _method =
MUL_PK;
break;
50 std::ostringstream oMessage;
51 oMessage <<
"The forecasting method '" << iMethod
52 <<
"' is not known. Known forecasting methods: " << lLabels;
60 return _labels[iMethod];
65 return _methodLabels[iMethod];
71 std::ostringstream oStr;
72 oStr << _methodLabels[iMethod];
78 std::ostringstream ostr;
79 for (
unsigned short idx = 0; idx !=
LAST_VALUE; ++idx) {
95 std::ostringstream oStr;
96 oStr << _methodLabels[_method];
102 std::ostringstream ostr;
103 ostr << _labels[_method];
110 return (_method == iMethod);