StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
31  static const std::string& getLabel (const EN_EventType&);
32 
34  static char getTypeLabel (const EN_EventType&);
35 
37  static std::string getTypeLabelAsString (const EN_EventType&);
38 
40  static std::string describeLabels();
41 
43  EN_EventType getType() const;
44 
46  std::string getTypeAsString() const;
47 
50  const std::string describe() const;
51 
52  public:
54  bool operator== (const EN_EventType&) const;
55 
56  public:
58  EventType (const EN_EventType&);
60  EventType (const char iType);
62  EventType (const EventType&);
63 
64  private:
66  EventType();
67 
68 
69  private:
71  static const std::string _labels[LAST_VALUE];
73  static const char _typeLabels[LAST_VALUE];
74 
75 
76  private:
77  // //////// Attributes /////////
79  EN_EventType _type;
80  };
81 
82 }
83 #endif // __STDAIR_BAS_EVENTTYPE_HPP