StdAir Logo  1.00.10
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,
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
stdair::EventType::SNAPSHOT
@ SNAPSHOT
Definition: EventType.hpp:23
stdair::EventType::LAST_VALUE
@ LAST_VALUE
Definition: EventType.hpp:26
stdair::EventType::operator==
bool operator==(const EN_EventType &) const
Definition: EventType.cpp:131
stdair::EventType::getType
EN_EventType getType() const
Definition: EventType.cpp:112
stdair::EventType::describeLabels
static std::string describeLabels()
Definition: EventType.cpp:100
stdair::EventType::BRK_PT
@ BRK_PT
Definition: EventType.hpp:25
stdair::EventType::OPT_NOT_4_FD
@ OPT_NOT_4_FD
Definition: EventType.hpp:20
stdair::EventType::getLabel
static const std::string & getLabel(const EN_EventType &)
Definition: EventType.cpp:83
stdair::EventType::RM
@ RM
Definition: EventType.hpp:24
stdair::EventType::SKD_CHG
@ SKD_CHG
Definition: EventType.hpp:22
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::EventType::getTypeLabelAsString
static std::string getTypeLabelAsString(const EN_EventType &)
Definition: EventType.cpp:93
stdair::EventType
Definition: EventType.hpp:15
stdair::EventType::EN_EventType
EN_EventType
Definition: EventType.hpp:17
stdair::EventType::describe
const std::string describe() const
Definition: EventType.cpp:124
StructAbstract.hpp
stdair::EventType::getTypeLabel
static char getTypeLabel(const EN_EventType &)
Definition: EventType.cpp:88
stdair::EventType::OPT_NOT_4_NET
@ OPT_NOT_4_NET
Definition: EventType.hpp:21
stdair::EventType::getTypeAsString
std::string getTypeAsString() const
Definition: EventType.cpp:117
stdair::EventType::CX
@ CX
Definition: EventType.hpp:19
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16
stdair::EventType::BKG_REQ
@ BKG_REQ
Definition: EventType.hpp:18