$treeview $search $mathjax
#include <stdair/basic/PassengerChoiceModel.hpp>
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 () |
Enumeration of passenger choice models.
Definition at line 15 of file PassengerChoiceModel.hpp.
Definition at line 17 of file PassengerChoiceModel.hpp.
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.
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.
void stdair::StructAbstract::toStream | ( | std::ostream & | ioOut | ) | const [inline, inherited] |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented in stdair::YieldRange, stdair::AirlineStruct, stdair::BookingRequestStruct, stdair::BreakPointStruct, stdair::CancellationStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, stdair::OptimisationNotificationStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::TravelSolutionStruct, and stdair::VirtualClassStruct.
Definition at line 29 of file StructAbstract.hpp.
References stdair::StructAbstract::describe().
virtual void stdair::StructAbstract::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual, inherited] |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented in stdair::ProgressStatusSet, stdair::YieldRange, stdair::AirlineStruct, stdair::BookingRequestStruct, stdair::BreakPointStruct, stdair::CancellationStruct, stdair::ConfigHolderStruct, stdair::EventStruct, stdair::FareOptionStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, stdair::OptimisationNotificationStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::TravelSolutionStruct, and stdair::VirtualClassStruct.
Definition at line 38 of file StructAbstract.hpp.
Referenced by operator>>().