#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.
|
static |
Get the label as a string (e.g., HardRestrictionModel", "PriceOrientedModel" or "HybridModel").
Definition at line 60 of file PassengerChoiceModel.cpp.
|
static |
Get the label as a single char (e.g., 'R', 'P' or 'H').
Definition at line 65 of file PassengerChoiceModel.cpp.
|
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.
|
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.
|
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.
|
inlineinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 29 of file StructAbstract.hpp.
References stdair::StructAbstract::describe().
|
inlinevirtualinherited |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::EventStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::ProgressStatusSet, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 38 of file StructAbstract.hpp.
Referenced by operator>>().