#include <airinv/basic/FlightVisibilityCode.hpp>
Public Types | |
enum | EN_FlightVisibilityCode { NORMAL = 0, HIDDEN, PSEUDO, LAST_VALUE } |
Public Member Functions | |
EN_FlightVisibilityCode | getCode () const |
const std::string | describe () const |
FlightVisibilityCode (const EN_FlightVisibilityCode &) | |
FlightVisibilityCode (const std::string &iCode) |
Static Public Member Functions | |
static const std::string & | getLabel (const EN_FlightVisibilityCode &) |
static const std::string & | getCodeLabel (const EN_FlightVisibilityCode &) |
static std::string | describeLabels () |
Enumeration of flight visibility codes.
Definition at line 15 of file FlightVisibilityCode.hpp.
Definition at line 17 of file FlightVisibilityCode.hpp.
AIRINV::FlightVisibilityCode::FlightVisibilityCode | ( | const EN_FlightVisibilityCode & | iFlightVisibilityCode | ) |
Constructor.
Definition at line 25 of file FlightVisibilityCode.cpp.
AIRINV::FlightVisibilityCode::FlightVisibilityCode | ( | const std::string & | iCode | ) |
Constructor.
Definition at line 30 of file FlightVisibilityCode.cpp.
References describeLabels(), HIDDEN, LAST_VALUE, NORMAL, and PSEUDO.
|
static |
Get the label as a string.
Definition at line 57 of file FlightVisibilityCode.cpp.
|
static |
Get the label as a single char.
Definition at line 63 of file FlightVisibilityCode.cpp.
|
static |
List the labels.
Definition at line 68 of file FlightVisibilityCode.cpp.
References LAST_VALUE.
Referenced by FlightVisibilityCode().
FlightVisibilityCode::EN_FlightVisibilityCode AIRINV::FlightVisibilityCode::getCode | ( | ) | const |
Get the enumerated value.
Definition at line 81 of file FlightVisibilityCode.cpp.
Referenced by AIRINV::FlightDateStruct::describe(), and AIRINV::InventoryParserHelper::storeFlightVisibilityCode::operator()().
const std::string AIRINV::FlightVisibilityCode::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 86 of file FlightVisibilityCode.cpp.