#include <airinv/basic/FlightTypeCode.hpp>
Public Types | |
enum | EN_FlightTypeCode { DOMESTIC = 0, INTERNATIONAL, GROUND_HANDLING, LAST_VALUE } |
Public Member Functions | |
EN_FlightTypeCode | getCode () const |
const std::string | describe () const |
FlightTypeCode (const EN_FlightTypeCode &) | |
FlightTypeCode (const std::string &iCode) |
Static Public Member Functions | |
static const std::string & | getLabel (const EN_FlightTypeCode &) |
static const std::string & | getCodeLabel (const EN_FlightTypeCode &) |
static std::string | describeLabels () |
Enumeration of flight type codes.
Definition at line 15 of file FlightTypeCode.hpp.
Definition at line 17 of file FlightTypeCode.hpp.
AIRINV::FlightTypeCode::FlightTypeCode | ( | const EN_FlightTypeCode & | iFlightTypeCode | ) |
Constructor.
Definition at line 24 of file FlightTypeCode.cpp.
AIRINV::FlightTypeCode::FlightTypeCode | ( | const std::string & | iCode | ) |
Constructor.
Definition at line 29 of file FlightTypeCode.cpp.
References describeLabels(), DOMESTIC, GROUND_HANDLING, INTERNATIONAL, and LAST_VALUE.
|
static |
Get the label as a string.
Definition at line 54 of file FlightTypeCode.cpp.
|
static |
Get the label as a single char.
Definition at line 60 of file FlightTypeCode.cpp.
|
static |
List the labels.
Definition at line 65 of file FlightTypeCode.cpp.
References LAST_VALUE.
Referenced by FlightTypeCode().
FlightTypeCode::EN_FlightTypeCode AIRINV::FlightTypeCode::getCode | ( | ) | const |
Get the enumerated value.
Definition at line 77 of file FlightTypeCode.cpp.
Referenced by AIRINV::InventoryParserHelper::storeFlightTypeCode::operator()().
const std::string AIRINV::FlightTypeCode::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 82 of file FlightTypeCode.cpp.