AirInv Logo  1.00.1
C++ Simulated Airline Inventory Management System library
AIRINV::FlightVisibilityCode Struct Reference

#include <airinv/basic/FlightVisibilityCode.hpp>

+ Inheritance diagram for AIRINV::FlightVisibilityCode:

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

Enumerator
NORMAL 
HIDDEN 
PSEUDO 
LAST_VALUE 

Definition at line 17 of file FlightVisibilityCode.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

Get the label as a string.

Definition at line 57 of file FlightVisibilityCode.cpp.

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

Get the label as a single char.

Definition at line 63 of file FlightVisibilityCode.cpp.

std::string AIRINV::FlightVisibilityCode::describeLabels ( )
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
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: