AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRINV::FlightVisibilityCode Struct Reference

#include <airinv/basic/FlightVisibilityCode.hpp>

+ Inheritance diagram for AIRINV::FlightVisibilityCode:

List of all members.

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 ()

Detailed Description

Enumeration of flight visibility codes.

Definition at line 15 of file FlightVisibilityCode.hpp.

Member Enumeration Documentation


Definition at line 17 of file FlightVisibilityCode.hpp.

Constructor & Destructor Documentation

AIRINV::FlightVisibilityCode::FlightVisibilityCode ( const EN_FlightVisibilityCode iFlightVisibilityCode)


Definition at line 25 of file FlightVisibilityCode.cpp.

AIRINV::FlightVisibilityCode::FlightVisibilityCode ( const std::string &  iCode)


Definition at line 30 of file FlightVisibilityCode.cpp.

References describeLabels(), HIDDEN, LAST_VALUE, NORMAL, and PSEUDO.

Member Function Documentation

const std::string & AIRINV::FlightVisibilityCode::getLabel ( const EN_FlightVisibilityCode iCode)

Get the label as a string.

Definition at line 57 of file FlightVisibilityCode.cpp.

const std::string & AIRINV::FlightVisibilityCode::getCodeLabel ( const EN_FlightVisibilityCode iCode)

Get the label as a single char.

Definition at line 63 of file FlightVisibilityCode.cpp.

std::string AIRINV::FlightVisibilityCode::describeLabels ( )

List the labels.

Definition at line 68 of file FlightVisibilityCode.cpp.

References LAST_VALUE.

Referenced by FlightVisibilityCode().

FlightVisibilityCode::EN_FlightVisibilityCode AIRINV::FlightVisibilityCode::getCode ( ) const
const std::string AIRINV::FlightVisibilityCode::describe ( ) const

Give a description of the structure (for display purposes).

Definition at line 86 of file FlightVisibilityCode.cpp.

The documentation for this struct was generated from the following files: