8 #include <stdair/service/Logger.hpp>
16 const std::string FlightTypeCode::_labels[LAST_VALUE] =
17 {
"Domestic",
"International",
"Ground Handling"};
19 const std::string FlightTypeCode::_codeLabels[LAST_VALUE] =
20 {
"DOM",
"INT",
"GRD" };
25 : _code (iFlightTypeCode) {
35 }
else if (iCode ==
"INT") {
38 }
else if (iCode ==
"GRD") {
44 STDAIR_LOG_ERROR (
"The flight type code '" << iCode
45 <<
"' is not known. Known flight type codes: "
47 throw stdair::CodeConversionException (
"The flight type code '" + iCode
48 +
"' is not known. Known flight type codes: "
55 return _labels[iCode];
61 return _codeLabels[iCode];
66 std::ostringstream ostr;
67 for (
unsigned short idx = 0; idx !=
LAST_VALUE; ++idx) {
83 std::ostringstream ostr;
84 ostr << _labels[_code];