StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
stdair::ForecastingMethod Struct Reference

#include <stdair/basic/ForecastingMethod.hpp>

+ Inheritance diagram for stdair::ForecastingMethod:

List of all members.

Public Types

enum  EN_ForecastingMethod { ADD_PK = 0, MUL_PK, LAST_VALUE }

Public Member Functions

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

Static Public Member Functions

static const std::stringgetLabel (const EN_ForecastingMethod &)
static char getMethodLabel (const EN_ForecastingMethod &)
static std::string getMethodLabelAsString (const EN_ForecastingMethod &)
static std::string describeLabels ()

Detailed Description

Enumeration of forecasting methods.


Member Enumeration Documentation

Enumerator:
ADD_PK 
MUL_PK 
LAST_VALUE 

Definition at line 17 of file ForecastingMethod.hpp.


Constructor & Destructor Documentation

stdair::ForecastingMethod::ForecastingMethod ( const EN_ForecastingMethod iForecastingMethod)

Constructor.

Definition at line 36 of file ForecastingMethod.cpp.

stdair::ForecastingMethod::ForecastingMethod ( const char  iMethod)

Constructor.

Definition at line 41 of file ForecastingMethod.cpp.

References ADD_PK, MUL_PK, LAST_VALUE, and describeLabels().

stdair::ForecastingMethod::ForecastingMethod ( const ForecastingMethod iForecastingMethod)

Default copy constructor.

Definition at line 30 of file ForecastingMethod.cpp.


Member Function Documentation

const std::string & stdair::ForecastingMethod::getLabel ( const EN_ForecastingMethod iMethod) [static]

Get the label as a string (e.g., "BookingRequest" or "ScheduleChange").

Definition at line 59 of file ForecastingMethod.cpp.

char stdair::ForecastingMethod::getMethodLabel ( const EN_ForecastingMethod iMethod) [static]

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

Definition at line 64 of file ForecastingMethod.cpp.

std::string stdair::ForecastingMethod::getMethodLabelAsString ( const EN_ForecastingMethod iMethod) [static]

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

Definition at line 70 of file ForecastingMethod.cpp.

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

List the labels.

Definition at line 77 of file ForecastingMethod.cpp.

References LAST_VALUE.

Referenced by ForecastingMethod().

ForecastingMethod::EN_ForecastingMethod stdair::ForecastingMethod::getMethod ( ) const

Get the enumerated value.

Definition at line 89 of file ForecastingMethod.cpp.

std::string stdair::ForecastingMethod::getMethodAsString ( ) const

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

Definition at line 94 of file ForecastingMethod.cpp.

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

Give a description of the structure (e.g., "BookingRequest" or "ScheduleChange").

Implements stdair::StructAbstract.

Definition at line 101 of file ForecastingMethod.cpp.

bool stdair::ForecastingMethod::operator== ( const EN_ForecastingMethod iMethod) const

Comparison operator.

Definition at line 109 of file ForecastingMethod.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: