StdAir Logo  1.00.17
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
PassengerChoiceModel.hpp
Go to the documentation of this file.
1#ifndef __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
2#define __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STL
8#include <string>
9// StdAir
11
12namespace stdair {
13
16 public:
17 typedef enum {
22 } EN_PassengerChoiceModel;
23
26 static const std::string& getLabel (const EN_PassengerChoiceModel&);
27
29 static char getModelLabel (const EN_PassengerChoiceModel&);
30
32 static std::string getModelLabelAsString (const EN_PassengerChoiceModel&);
33
35 static std::string describeLabels();
36
38 EN_PassengerChoiceModel getModel() const;
39
41 std::string getModelAsString() const;
42
45 const std::string describe() const;
46
47 public:
49 bool operator== (const EN_PassengerChoiceModel&) const;
50
51 public:
53 PassengerChoiceModel (const EN_PassengerChoiceModel&);
55 PassengerChoiceModel (const char iModel);
58
59 private:
62
63
64 private:
66 static const std::string _labels[LAST_VALUE];
68 static const char _modelLabels[LAST_VALUE];
69
70
71 private:
72 // //////// Attributes /////////
74 EN_PassengerChoiceModel _model;
75 };
76}
77
78#endif // __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
Handle on the StdAir library context.
const std::string describe() const
PassengerChoiceModel(const EN_PassengerChoiceModel &)
EN_PassengerChoiceModel getModel() const
static const std::string & getLabel(const EN_PassengerChoiceModel &)
static char getModelLabel(const EN_PassengerChoiceModel &)
static std::string getModelLabelAsString(const EN_PassengerChoiceModel &)
bool operator==(const EN_PassengerChoiceModel &) const
Base class for the light structures.