#include <stdair/bom/EventStruct.hpp>
Public Member Functions | |
const EventType::EN_EventType & | getEventType () const |
const BookingRequestStruct & | getBookingRequest () const |
const CancellationStruct & | getCancellation () const |
const OptimisationNotificationStruct & | getOptimisationNotificationStruct () const |
const SnapshotStruct & | getSnapshotStruct () const |
const RMEventStruct & | getRMEvent () const |
void | fromStream (std::istream &ioIn) |
const std::string | describe () const |
EventStruct () | |
EventStruct (const EventType::EN_EventType &, BookingRequestPtr_T) | |
EventStruct (const EventType::EN_EventType &, CancellationPtr_T) | |
EventStruct (const EventType::EN_EventType &, const DateTime_T &iDCPDate, OptimisationNotificationPtr_T) | |
EventStruct (const EventType::EN_EventType &, SnapshotPtr_T) | |
EventStruct (const EventType::EN_EventType &, RMEventPtr_T) | |
EventStruct (const EventStruct &) | |
~EventStruct () | |
void | toStream (std::ostream &ioOut) const |
Friends | |
struct | EventQueue |
Structure holding the details of an event.
Definition at line 35 of file EventStruct.hpp.
stdair::EventStruct::EventStruct | ( | ) |
Default constructor.
Definition at line 25 of file EventStruct.cpp.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
BookingRequestPtr_T | ioRequestPtr | ||
) |
Constructor for events corresponding to booking requests.
Definition at line 30 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
CancellationPtr_T | ioCancellationPtr | ||
) |
Constructor for events corresponding to cancellations.
Definition at line 54 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
const DateTime_T & | iDCPDate, | ||
OptimisationNotificationPtr_T | ioOptimisationNotificationPtr | ||
) |
Constructor for events corresponding to optimisation requests.
Definition at line 79 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
SnapshotPtr_T | ioSnapshotPtr | ||
) |
Constructor for events corresponding to snapshot requests.
Definition at line 104 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
RMEventPtr_T | ioRMEventPtr | ||
) |
Constructor for events corresponding to RM events.
Definition at line 129 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventStruct & | iEventStruct | ) |
Copy constructor.
Definition at line 154 of file EventStruct.cpp.
stdair::EventStruct::~EventStruct | ( | ) |
Destructor.
Definition at line 208 of file EventStruct.cpp.
|
inline |
Get the event type
Definition at line 42 of file EventStruct.hpp.
Referenced by stdair::EventQueue::popEvent().
|
inline |
Get a reference on the booking request referred to by event.
Definition at line 52 of file EventStruct.hpp.
|
inline |
Get a reference on the cancellation referred to by event.
Definition at line 63 of file EventStruct.hpp.
|
inline |
Get a reference on the optimisation notification referred to by event.
Definition at line 76 of file EventStruct.hpp.
|
inline |
Get a reference on the snapshot referred to by event.
Definition at line 88 of file EventStruct.hpp.
|
inline |
Get a reference on the RM event referred to by the generic event.
Definition at line 100 of file EventStruct.hpp.
|
virtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 212 of file EventStruct.cpp.
|
virtual |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 216 of file EventStruct.cpp.
References stdair::EventType::BKG_REQ, stdair::EventType::CX, stdair::DEFAULT_EVENT_OLDEST_DATETIME, stdair::EventType::OPT_NOT_4_FD, stdair::EventType::RM, and stdair::EventType::SNAPSHOT.
|
inlineinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::TravelSolutionStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::VirtualClassStruct, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, and stdair::SnapshotStruct.
Definition at line 29 of file StructAbstract.hpp.
References stdair::StructAbstract::describe().
|
friend |
Definition at line 37 of file EventStruct.hpp.