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::FlightRequestStatus Struct Reference

#include <airinv/FlightRequestStatus.hpp>

+ Inheritance diagram for AIRINV::FlightRequestStatus:

List of all members.

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

Detailed Description

Enumeration of flight type codes.

Definition at line 15 of file FlightRequestStatus.hpp.

Member Enumeration Documentation


Definition at line 17 of file FlightRequestStatus.hpp.

Constructor & Destructor Documentation

AIRINV::FlightRequestStatus::FlightRequestStatus ( const EN_FlightRequestStatus iFlightRequestStatus)


Definition at line 25 of file FlightRequestStatus.cpp.

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


Definition at line 30 of file FlightRequestStatus.cpp.

References describeLabels(), INTERNAL_ERROR, LAST_VALUE, NOT_FOUND, and OK.

Member Function Documentation

const std::string & AIRINV::FlightRequestStatus::getLabel ( const EN_FlightRequestStatus iCode)

Get the label as a string.

Definition at line 58 of file FlightRequestStatus.cpp.

const std::string & AIRINV::FlightRequestStatus::getCodeLabel ( const EN_FlightRequestStatus iCode)

Get the label as a single char.

Definition at line 64 of file FlightRequestStatus.cpp.

std::string AIRINV::FlightRequestStatus::describeLabels ( )

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.

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