#include <airinv/FlightRequestStatus.hpp>
Public Types | |
enum | EN_FlightRequestStatus { OK = 0, NOT_FOUND, INTERNAL_ERROR, LAST_VALUE } |
Public Member Functions | |
EN_FlightRequestStatus | getCode () const |
const std::string | describe () const |
FlightRequestStatus (const EN_FlightRequestStatus &) | |
FlightRequestStatus (const std::string &iCode) |
Static Public Member Functions | |
static const std::string & | getLabel (const EN_FlightRequestStatus &) |
static const std::string & | getCodeLabel (const EN_FlightRequestStatus &) |
static std::string | describeLabels () |
Enumeration of flight type codes.
Definition at line 15 of file FlightRequestStatus.hpp.
Definition at line 17 of file FlightRequestStatus.hpp.
AIRINV::FlightRequestStatus::FlightRequestStatus | ( | const EN_FlightRequestStatus & | iFlightRequestStatus | ) |
Constructor.
Definition at line 25 of file FlightRequestStatus.cpp.
AIRINV::FlightRequestStatus::FlightRequestStatus | ( | const std::string & | iCode | ) |
Constructor.
Definition at line 30 of file FlightRequestStatus.cpp.
References describeLabels(), INTERNAL_ERROR, LAST_VALUE, NOT_FOUND, and OK.
|
static |
Get the label as a string.
Definition at line 58 of file FlightRequestStatus.cpp.
|
static |
Get the label as a single char.
Definition at line 64 of file FlightRequestStatus.cpp.
|
static |
List the labels.
Definition at line 69 of file FlightRequestStatus.cpp.
References LAST_VALUE.
Referenced by FlightRequestStatus().
FlightRequestStatus::EN_FlightRequestStatus AIRINV::FlightRequestStatus::getCode | ( | ) | const |
Get the enumerated value.
Definition at line 82 of file FlightRequestStatus.cpp.
const std::string AIRINV::FlightRequestStatus::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 87 of file FlightRequestStatus.cpp.