AirInv Logo  1.00.3
C++ Simulated Airline Inventory Management System library
FlightVisibilityCode.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_BAS_FLIGHTVISIBILITYCODE_HPP
2 #define __AIRINV_BAS_FLIGHTVISIBILITYCODE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
10 #include <stdair/basic/StructAbstract.hpp>
11 
12 namespace AIRINV {
13 
15  struct FlightVisibilityCode : public stdair::StructAbstract {
16  public:
17  typedef enum {
18  NORMAL = 0,
23 
25  static const std::string& getLabel (const EN_FlightVisibilityCode&);
26 
28  static const std::string& getCodeLabel (const EN_FlightVisibilityCode&);
29 
31  static std::string describeLabels();
32 
35 
37  const std::string describe() const;
38 
39 
40  public:
44  FlightVisibilityCode (const std::string& iCode);
45 
46 
47  private:
49  static const std::string _labels[LAST_VALUE];
51  static const std::string _codeLabels[LAST_VALUE];
52 
53 
54  private:
55  // //////// Attributes /////////
58  };
59 
60 }
61 #endif // __AIRINV_BAS_FLIGHTVISIBILITYCODE_HPP
AIRINV::FlightVisibilityCode::EN_FlightVisibilityCode
EN_FlightVisibilityCode
Definition: FlightVisibilityCode.hpp:17
AIRINV::FlightVisibilityCode::describe
const std::string describe() const
Definition: FlightVisibilityCode.cpp:86
AIRINV::FlightVisibilityCode::getLabel
static const std::string & getLabel(const EN_FlightVisibilityCode &)
Definition: FlightVisibilityCode.cpp:57
AIRINV::FlightVisibilityCode::describeLabels
static std::string describeLabels()
Definition: FlightVisibilityCode.cpp:68
AIRINV::FlightVisibilityCode::NORMAL
@ NORMAL
Definition: FlightVisibilityCode.hpp:18
AIRINV::FlightVisibilityCode::PSEUDO
@ PSEUDO
Definition: FlightVisibilityCode.hpp:20
AIRINV::FlightVisibilityCode::getCodeLabel
static const std::string & getCodeLabel(const EN_FlightVisibilityCode &)
Definition: FlightVisibilityCode.cpp:63
AIRINV::FlightVisibilityCode::HIDDEN
@ HIDDEN
Definition: FlightVisibilityCode.hpp:19
AIRINV::FlightVisibilityCode::FlightVisibilityCode
FlightVisibilityCode(const EN_FlightVisibilityCode &)
Definition: FlightVisibilityCode.cpp:25
AIRINV
Definition: AIRINV_Master_Service.hpp:38
AIRINV::FlightVisibilityCode::getCode
EN_FlightVisibilityCode getCode() const
Definition: FlightVisibilityCode.cpp:81
AIRINV::FlightVisibilityCode::LAST_VALUE
@ LAST_VALUE
Definition: FlightVisibilityCode.hpp:21
AIRINV::FlightVisibilityCode
Definition: FlightVisibilityCode.hpp:15