AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
FlightRequestStatus.hpp
Go to the documentation of this file.
00001 #ifndef __AIRINV_BAS_FLIGHTREQUESTSTATUS_HPP
00002 #define __AIRINV_BAS_FLIGHTREQUESTSTATUS_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 // StdAir
00010 #include <stdair/basic/StructAbstract.hpp>
00011 
00012 namespace AIRINV {
00013 
00015   struct FlightRequestStatus : public stdair::StructAbstract {
00016   public:
00017     typedef enum { 
00018       OK = 0,
00019       NOT_FOUND,
00020       INTERNAL_ERROR,
00021       LAST_VALUE
00022     } EN_FlightRequestStatus;
00023 
00025     static const std::string& getLabel (const EN_FlightRequestStatus&);
00026 
00028     static const std::string& getCodeLabel (const EN_FlightRequestStatus&);
00029 
00031     static std::string describeLabels();
00032 
00034     EN_FlightRequestStatus getCode() const;
00035 
00037     const std::string describe() const;
00038 
00039     
00040   public:
00042     FlightRequestStatus (const EN_FlightRequestStatus&);
00044     FlightRequestStatus (const std::string& iCode);
00045 
00046     
00047   private:
00049     static const std::string _labels[LAST_VALUE];
00051     static const std::string _codeLabels[LAST_VALUE];
00052 
00053 
00054   private:
00055     // //////// Attributes /////////
00057     EN_FlightRequestStatus _code;
00058   };
00059 
00060 }
00061 #endif // __AIRINV_BAS_FLIGHTREQUESTSTATUS_HPP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines