StdAir Logo  1.00.13
C++ Standard Airline IT Object Library
stdair::PassengerChoiceModel Struct Reference

#include <stdair/basic/PassengerChoiceModel.hpp>

+ Inheritance diagram for stdair::PassengerChoiceModel:

Public Types

enum  EN_PassengerChoiceModel { HARD_RESTRICTION = 0 , PRICE_ORIENTED , HYBRID , LAST_VALUE }
 

Public Member Functions

EN_PassengerChoiceModel getModel () const
 
std::string getModelAsString () const
 
const std::string describe () const
 
bool operator== (const EN_PassengerChoiceModel &) const
 
 PassengerChoiceModel (const EN_PassengerChoiceModel &)
 
 PassengerChoiceModel (const char iModel)
 
 PassengerChoiceModel (const PassengerChoiceModel &)
 
void toStream (std::ostream &ioOut) const
 
virtual void fromStream (std::istream &ioIn)
 

Static Public Member Functions

static const std::string & getLabel (const EN_PassengerChoiceModel &)
 
static char getModelLabel (const EN_PassengerChoiceModel &)
 
static std::string getModelLabelAsString (const EN_PassengerChoiceModel &)
 
static std::string describeLabels ()
 

Detailed Description

Enumeration of passenger choice models.

Definition at line 15 of file PassengerChoiceModel.hpp.

Member Enumeration Documentation

◆ EN_PassengerChoiceModel

Enumerator
HARD_RESTRICTION 
PRICE_ORIENTED 
HYBRID 
LAST_VALUE 

Definition at line 17 of file PassengerChoiceModel.hpp.

Constructor & Destructor Documentation

◆ PassengerChoiceModel() [1/3]

stdair::PassengerChoiceModel::PassengerChoiceModel ( const EN_PassengerChoiceModel iPassengerChoiceModel)

Constructor.

Definition at line 35 of file PassengerChoiceModel.cpp.

◆ PassengerChoiceModel() [2/3]

stdair::PassengerChoiceModel::PassengerChoiceModel ( const char  iModel)

Constructor.

Definition at line 41 of file PassengerChoiceModel.cpp.

References describeLabels(), HARD_RESTRICTION, HYBRID, LAST_VALUE, and PRICE_ORIENTED.

◆ PassengerChoiceModel() [3/3]

stdair::PassengerChoiceModel::PassengerChoiceModel ( const PassengerChoiceModel iPassengerChoiceModel)

Default copy constructor.

Definition at line 29 of file PassengerChoiceModel.cpp.

Member Function Documentation

◆ getLabel()

const std::string & stdair::PassengerChoiceModel::getLabel ( const EN_PassengerChoiceModel iModel)
static

Get the label as a string (e.g., HardRestrictionModel", "PriceOrientedModel" or "HybridModel").

Definition at line 59 of file PassengerChoiceModel.cpp.

◆ getModelLabel()

char stdair::PassengerChoiceModel::getModelLabel ( const EN_PassengerChoiceModel iModel)
static

Get the label as a single char (e.g., 'R', 'P' or 'H').

Definition at line 65 of file PassengerChoiceModel.cpp.

◆ getModelLabelAsString()

std::string stdair::PassengerChoiceModel::getModelLabelAsString ( const EN_PassengerChoiceModel iModel)
static

Get the label as a string of a single char (e.g., "R", "P" or "H").

Definition at line 70 of file PassengerChoiceModel.cpp.

◆ describeLabels()

std::string stdair::PassengerChoiceModel::describeLabels ( )
static

List the labels.

Definition at line 78 of file PassengerChoiceModel.cpp.

References LAST_VALUE.

Referenced by PassengerChoiceModel().

◆ getModel()

PassengerChoiceModel::EN_PassengerChoiceModel stdair::PassengerChoiceModel::getModel ( ) const

Get the enumerated value.

Definition at line 90 of file PassengerChoiceModel.cpp.

◆ getModelAsString()

std::string stdair::PassengerChoiceModel::getModelAsString ( ) const

Get the enumerated value as a short string (e.g., "R", "P" or "H").

Definition at line 95 of file PassengerChoiceModel.cpp.

◆ describe()

const std::string stdair::PassengerChoiceModel::describe ( ) const
virtual

Give a description of the structure (e.g., HardRestrictionModel", "PriceOrientedModel" or "HybridModel").

Implements stdair::StructAbstract.

Definition at line 102 of file PassengerChoiceModel.cpp.

◆ operator==()

bool stdair::PassengerChoiceModel::operator== ( const EN_PassengerChoiceModel iModel) const

Comparaison operator.

Definition at line 109 of file PassengerChoiceModel.cpp.

◆ toStream()

void stdair::StructAbstract::toStream ( std::ostream &  ioOut) const
inlineinherited

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Definition at line 29 of file StructAbstract.hpp.

References stdair::StructAbstract::describe().

◆ fromStream()


The documentation for this struct was generated from the following files: