StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
EventType.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_EVENTTYPE_HPP
2 #define __STDAIR_BAS_EVENTTYPE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
11 
12 namespace stdair {
13 
15  struct EventType : public StructAbstract {
16  public:
17  typedef enum {
18  BKG_REQ = 0,
19  CX,
24  RM,
27  } EN_EventType;
28 
34  static const std::string& getLabel (const EN_EventType&);
35 
39  static char getTypeLabel (const EN_EventType&);
40 
44  static std::string getTypeLabelAsString (const EN_EventType&);
45 
47  static std::string describeLabels();
48 
50  EN_EventType getType() const;
51 
55  std::string getTypeAsString() const;
56 
62  const std::string describe() const;
63 
64  public:
66  bool operator== (const EN_EventType&) const;
67 
68  public:
70  EventType (const EN_EventType&);
72  EventType (const char iType);
74  EventType (const std::string& iTypeStr);
76  EventType (const EventType&);
77 
78  private:
80  EventType();
81 
82 
83  private:
85  static const std::string _labels[LAST_VALUE];
87  static const char _typeLabels[LAST_VALUE];
88 
89 
90  private:
91  // //////// Attributes /////////
93  EN_EventType _type;
94  };
95 
96 }
97 #endif // __STDAIR_BAS_EVENTTYPE_HPP
EN_EventType getType() const
Definition: EventType.cpp:112
static char getTypeLabel(const EN_EventType &)
Definition: EventType.cpp:88
Handle on the StdAir library context.
Base class for the light structures.
static const std::string & getLabel(const EN_EventType &)
Definition: EventType.cpp:83
static std::string describeLabels()
Definition: EventType.cpp:100
static std::string getTypeLabelAsString(const EN_EventType &)
Definition: EventType.cpp:93
std::string getTypeAsString() const
Definition: EventType.cpp:117
bool operator==(const EN_EventType &) const
Definition: EventType.cpp:131
const std::string describe() const
Definition: EventType.cpp:124