$treeview $search $mathjax
StdAir Logo  1.00.2
$projectbrief
$projectbrief
$searchbox

stdair::PassengerChoiceModel Struct Reference

#include <stdair/basic/PassengerChoiceModel.hpp>

Inheritance diagram for stdair::PassengerChoiceModel:
stdair::StructAbstract

List of all members.

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

Enumerator:
HARD_RESTRICTION 
PRICE_ORIENTED 
HYBRID 
LAST_VALUE 

Definition at line 17 of file PassengerChoiceModel.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 36 of file PassengerChoiceModel.cpp.

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.

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

Default copy constructor.

Definition at line 30 of file PassengerChoiceModel.cpp.


Member Function Documentation

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 60 of file PassengerChoiceModel.cpp.

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.

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 71 of file PassengerChoiceModel.cpp.

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

List the labels.

Definition at line 78 of file PassengerChoiceModel.cpp.

References LAST_VALUE.

Referenced by PassengerChoiceModel().

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

Get the enumerated value.

Definition at line 90 of file PassengerChoiceModel.cpp.

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.

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.

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

Comparaison operator.

Definition at line 110 of file PassengerChoiceModel.cpp.


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