StdAir Logo  1.00.18
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
12namespace stdair {
13
15 struct EventType : public StructAbstract {
16 public:
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
Handle on the StdAir library context.
static char getTypeLabel(const EN_EventType &)
Definition EventType.cpp:88
static std::string getTypeLabelAsString(const EN_EventType &)
Definition EventType.cpp:93
static std::string describeLabels()
std::string getTypeAsString() const
EventType(const EN_EventType &)
Definition EventType.cpp:36
bool operator==(const EN_EventType &) const
const std::string describe() const
static const std::string & getLabel(const EN_EventType &)
Definition EventType.cpp:83
EN_EventType getType() const