StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
ServiceInitialisationType.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_SERVICEINITIALISATIONTYPE_HPP
2 #define __STDAIR_BAS_SERVICEINITIALISATIONTYPE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
11 
12 namespace stdair {
13 
18  public:
19  typedef enum {
25 
30  static const std::string& getLabel (const EN_ServiceInitialisationType&);
31 
35  static EN_ServiceInitialisationType getType (const char);
36 
40  static char getTypeLabel (const EN_ServiceInitialisationType&);
41 
45  static std::string
47 
51  static std::string describeLabels();
52 
57 
61  char getTypeAsChar() const;
62 
66  std::string getTypeAsString() const;
67 
72  const std::string describe() const;
73 
74  public:
78  bool operator== (const EN_ServiceInitialisationType&) const;
79 
80  public:
88  ServiceInitialisationType (const char iType);
92  ServiceInitialisationType (const std::string& iType);
97 
98  private:
103 
104 
105  private:
109  static const std::string _labels[LAST_VALUE];
113  static const char _typeLabels[LAST_VALUE];
114 
115  private:
116  // //////// Attributes /////////
121  };
122 
123 }
124 #endif // __STDAIR_BAS_SERVICEINITIALISATIONTYPE_HPP
stdair::ServiceInitialisationType::LAST_VALUE
@ LAST_VALUE
Definition: ServiceInitialisationType.hpp:23
stdair::ServiceInitialisationType::NOT_YET_INITIALISED
@ NOT_YET_INITIALISED
Definition: ServiceInitialisationType.hpp:20
stdair::ServiceInitialisationType::getType
EN_ServiceInitialisationType getType() const
Definition: ServiceInitialisationType.cpp:113
stdair::ServiceInitialisationType::EN_ServiceInitialisationType
EN_ServiceInitialisationType
Definition: ServiceInitialisationType.hpp:19
stdair::ServiceInitialisationType::operator==
bool operator==(const EN_ServiceInitialisationType &) const
Definition: ServiceInitialisationType.cpp:139
stdair::ServiceInitialisationType::getTypeLabel
static char getTypeLabel(const EN_ServiceInitialisationType &)
Definition: ServiceInitialisationType.cpp:87
stdair::ServiceInitialisationType::describeLabels
static std::string describeLabels()
Definition: ServiceInitialisationType.cpp:100
stdair::ServiceInitialisationType
Enumeration of service initialisation types.
Definition: ServiceInitialisationType.hpp:17
stdair::ServiceInitialisationType::getLabel
static const std::string & getLabel(const EN_ServiceInitialisationType &)
Definition: ServiceInitialisationType.cpp:81
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::ServiceInitialisationType::getTypeLabelAsString
static std::string getTypeLabelAsString(const EN_ServiceInitialisationType &)
Definition: ServiceInitialisationType.cpp:93
stdair::ServiceInitialisationType::getTypeAsString
std::string getTypeAsString() const
Definition: ServiceInitialisationType.cpp:124
StructAbstract.hpp
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16
stdair::ServiceInitialisationType::getTypeAsChar
char getTypeAsChar() const
Definition: ServiceInitialisationType.cpp:118
stdair::ServiceInitialisationType::FILE_PARSING
@ FILE_PARSING
Definition: ServiceInitialisationType.hpp:21
stdair::ServiceInitialisationType::describe
const std::string describe() const
Definition: ServiceInitialisationType.cpp:131
stdair::ServiceInitialisationType::BUILTIN_SAMPLE
@ BUILTIN_SAMPLE
Definition: ServiceInitialisationType.hpp:22