$treeview $search $mathjax
AirInv Logo  1.00.0
$projectbrief
$projectbrief
$searchbox

AIRINV::FlightTypeCode Struct Reference

#include <airinv/basic/FlightTypeCode.hpp>

Inheritance diagram for AIRINV::FlightTypeCode:
StructAbstract

List of all members.

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

Detailed Description

Enumeration of flight type codes.

Definition at line 15 of file FlightTypeCode.hpp.


Member Enumeration Documentation

Enumerator:
DOMESTIC 
INTERNATIONAL 
GROUND_HANDLING 
LAST_VALUE 

Definition at line 17 of file FlightTypeCode.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

const std::string & AIRINV::FlightTypeCode::getLabel ( const EN_FlightTypeCode iCode  )  [static]

Get the label as a string.

Definition at line 54 of file FlightTypeCode.cpp.

const std::string & AIRINV::FlightTypeCode::getCodeLabel ( const EN_FlightTypeCode iCode  )  [static]

Get the label as a single char.

Definition at line 60 of file FlightTypeCode.cpp.

std::string AIRINV::FlightTypeCode::describeLabels (  )  [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.


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