StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
stdair::DemandGenerationMethod Struct Reference

Enumeration of demand (booking request) generation methods. More...

#include <stdair/basic/DemandGenerationMethod.hpp>

+ Inheritance diagram for stdair::DemandGenerationMethod:

List of all members.

Public Types

enum  EN_DemandGenerationMethod { POI_PRO = 0, STA_ORD, LAST_VALUE }

Public Member Functions

EN_DemandGenerationMethod getMethod () const
char getMethodAsChar () const
std::string getMethodAsString () const
const std::string describe () const
bool operator== (const EN_DemandGenerationMethod &) const
 DemandGenerationMethod (const EN_DemandGenerationMethod &)
 DemandGenerationMethod (const char iMethod)
 DemandGenerationMethod (const std::string &iMethod)
 DemandGenerationMethod (const DemandGenerationMethod &)
void toStream (std::ostream &ioOut) const
virtual void fromStream (std::istream &ioIn)

Static Public Member Functions

static const std::string & getLabel (const EN_DemandGenerationMethod &)
static EN_DemandGenerationMethod getMethod (const char)
static char getMethodLabel (const EN_DemandGenerationMethod &)
static std::string getMethodLabelAsString (const EN_DemandGenerationMethod &)
static std::string describeLabels ()

Detailed Description

Enumeration of demand (booking request) generation methods.

Definition at line 17 of file DemandGenerationMethod.hpp.


Member Enumeration Documentation

Enumerator:
POI_PRO 
STA_ORD 
LAST_VALUE 

Definition at line 19 of file DemandGenerationMethod.hpp.


Constructor & Destructor Documentation

Main constructor.

Definition at line 34 of file DemandGenerationMethod.cpp.

Alternative constructor.

Definition at line 62 of file DemandGenerationMethod.cpp.

Alternative constructor.

Definition at line 68 of file DemandGenerationMethod.cpp.

References getMethod().

Default copy constructor.

Definition at line 28 of file DemandGenerationMethod.cpp.


Member Function Documentation

const std::string & stdair::DemandGenerationMethod::getLabel ( const EN_DemandGenerationMethod iMethod) [static]

Get the label as a string (e.g., "PoissonProcess" or "SatisticsOrder").

Definition at line 78 of file DemandGenerationMethod.cpp.

Get the method value from parsing a single char (e.g., 'P' or 'S').

Definition at line 40 of file DemandGenerationMethod.cpp.

References describeLabels(), LAST_VALUE, POI_PRO, and STA_ORD.

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

Definition at line 84 of file DemandGenerationMethod.cpp.

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

Definition at line 90 of file DemandGenerationMethod.cpp.

List the labels.

Definition at line 97 of file DemandGenerationMethod.cpp.

References LAST_VALUE.

Referenced by getMethod().

Get the enumerated value as a short string (e.g., 'P' or 'S').

Definition at line 115 of file DemandGenerationMethod.cpp.

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

Definition at line 121 of file DemandGenerationMethod.cpp.

const std::string stdair::DemandGenerationMethod::describe ( ) const [virtual]

Give a description of the structure (e.g., "PoissonProcess" or "SatisticsOrder").

Implements stdair::StructAbstract.

Definition at line 128 of file DemandGenerationMethod.cpp.

bool stdair::DemandGenerationMethod::operator== ( const EN_DemandGenerationMethod iMethod) const

Comparison operator.

Definition at line 136 of file DemandGenerationMethod.cpp.

void stdair::StructAbstract::toStream ( std::ostream &  ioOut) const [inline, inherited]
virtual void stdair::StructAbstract::fromStream ( std::istream &  ioIn) [inline, virtual, inherited]

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