StdAir Logo  1.00.10
C++ Standard Airline IT Object Library
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 
12 namespace stdair {
13 
16  public:
17  typedef enum {
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 
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:
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 /////////
75  };
76 }
77 
78 #endif // __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
stdair::PassengerChoiceModel
Definition: PassengerChoiceModel.hpp:15
stdair::PassengerChoiceModel::PRICE_ORIENTED
@ PRICE_ORIENTED
Definition: PassengerChoiceModel.hpp:19
stdair::PassengerChoiceModel::HARD_RESTRICTION
@ HARD_RESTRICTION
Definition: PassengerChoiceModel.hpp:18
stdair::PassengerChoiceModel::describeLabels
static std::string describeLabels()
Definition: PassengerChoiceModel.cpp:78
stdair::PassengerChoiceModel::getLabel
static const std::string & getLabel(const EN_PassengerChoiceModel &)
Definition: PassengerChoiceModel.cpp:60
stdair::PassengerChoiceModel::EN_PassengerChoiceModel
EN_PassengerChoiceModel
Definition: PassengerChoiceModel.hpp:17
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::PassengerChoiceModel::HYBRID
@ HYBRID
Definition: PassengerChoiceModel.hpp:20
stdair::PassengerChoiceModel::operator==
bool operator==(const EN_PassengerChoiceModel &) const
Definition: PassengerChoiceModel.cpp:110
stdair::PassengerChoiceModel::getModel
EN_PassengerChoiceModel getModel() const
Definition: PassengerChoiceModel.cpp:90
StructAbstract.hpp
stdair::PassengerChoiceModel::describe
const std::string describe() const
Definition: PassengerChoiceModel.cpp:102
stdair::PassengerChoiceModel::getModelAsString
std::string getModelAsString() const
Definition: PassengerChoiceModel.cpp:95
stdair::PassengerChoiceModel::getModelLabel
static char getModelLabel(const EN_PassengerChoiceModel &)
Definition: PassengerChoiceModel.cpp:65
stdair::PassengerChoiceModel::LAST_VALUE
@ LAST_VALUE
Definition: PassengerChoiceModel.hpp:21
stdair::PassengerChoiceModel::getModelLabelAsString
static std::string getModelLabelAsString(const EN_PassengerChoiceModel &)
Definition: PassengerChoiceModel.cpp:71
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16