StdAir Logo  0.43.0
C++ Standard Airline IT Library
stdair::EventType Struct Reference

#include <stdair/basic/EventType.hpp>

+ Inheritance diagram for stdair::EventType:

List of all members.

Public Types

enum  EN_EventType {
  BKG_REQ = 0, CX, OPT_NOT_4_FD, OPT_NOT_4_NET,
  SKD_CHG, SNAPSHOT, RM, BRK_PT,
  LAST_VALUE
}

Public Member Functions

EN_EventType getType () const
std::string getTypeAsString () const
const std::string describe () const
bool operator== (const EN_EventType &) const
 EventType (const EN_EventType &)
 EventType (const char iType)
 EventType (const EventType &)
void toStream (std::ostream &ioOut) const
virtual void fromStream (std::istream &ioIn)

Static Public Member Functions

static const std::stringgetLabel (const EN_EventType &)
static char getTypeLabel (const EN_EventType &)
static std::string getTypeLabelAsString (const EN_EventType &)
static std::string describeLabels ()

Detailed Description

Enumeration of event types.


Member Enumeration Documentation

Enumerator:
BKG_REQ 
CX 
OPT_NOT_4_FD 
OPT_NOT_4_NET 
SKD_CHG 
SNAPSHOT 
RM 
BRK_PT 
LAST_VALUE 

Definition at line 17 of file EventType.hpp.


Constructor & Destructor Documentation

stdair::EventType::EventType ( const EN_EventType iEventType)

Constructor.

Definition at line 36 of file EventType.cpp.

stdair::EventType::EventType ( const char  iType)

Constructor.

Definition at line 41 of file EventType.cpp.

References BKG_REQ, CX, OPT_NOT_4_FD, OPT_NOT_4_NET, SKD_CHG, SNAPSHOT, RM, BRK_PT, LAST_VALUE, and describeLabels().

stdair::EventType::EventType ( const EventType iEventType)

Default copy constructor.

Definition at line 31 of file EventType.cpp.


Member Function Documentation

const std::string & stdair::EventType::getLabel ( const EN_EventType iType) [static]

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

Definition at line 64 of file EventType.cpp.

Referenced by stdair::EventQueue::updateStatus().

char stdair::EventType::getTypeLabel ( const EN_EventType iType) [static]

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

Definition at line 69 of file EventType.cpp.

std::string stdair::EventType::getTypeLabelAsString ( const EN_EventType iType) [static]

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

Definition at line 74 of file EventType.cpp.

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

List the labels.

Definition at line 81 of file EventType.cpp.

References LAST_VALUE.

Referenced by EventType().

EventType::EN_EventType stdair::EventType::getType ( ) const

Get the enumerated value.

Definition at line 93 of file EventType.cpp.

std::string stdair::EventType::getTypeAsString ( ) const

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

Definition at line 98 of file EventType.cpp.

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

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

Implements stdair::StructAbstract.

Definition at line 105 of file EventType.cpp.

bool stdair::EventType::operator== ( const EN_EventType iType) const

Comparison operator.

Definition at line 112 of file EventType.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: