#include <stdair/bom/EventStruct.hpp>
Structure holding the details of an event.
Definition at line 36 of file EventStruct.hpp.
stdair::EventStruct::EventStruct | ( | ) |
Default constructor.
Definition at line 26 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 31 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 55 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 80 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 105 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 130 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventType::EN_EventType & | iEventType, |
BreakPointPtr_T | ioBreakPointPtr | ||
) |
Constructor for events corresponding to Break Point events.
Definition at line 155 of file EventStruct.cpp.
References stdair::DEFAULT_EVENT_OLDEST_DATETIME.
stdair::EventStruct::EventStruct | ( | const EventStruct & | iEventStruct | ) |
Copy constructor.
Definition at line 180 of file EventStruct.cpp.
stdair::EventStruct::~EventStruct | ( | ) |
Destructor.
Definition at line 243 of file EventStruct.cpp.
|
inline |
Get the event type
Definition at line 41 of file EventStruct.hpp.
Referenced by stdair::BomJSONExport::jsonExportBookingRequestObject(), stdair::BomJSONExport::jsonExportBreakPointObject(), and stdair::STDAIR_Service::jsonExportEventObject().
|
inline |
Get the event time stamp
Definition at line 46 of file EventStruct.hpp.
const DateTime_T & stdair::EventStruct::getEventTime | ( | ) | const |
Get the event date-time i.e the stamp converted to a date-time format.
Definition at line 311 of file EventStruct.cpp.
References stdair::EventType::BKG_REQ, stdair::EventType::BRK_PT, stdair::EventType::CX, stdair::DEFAULT_EVENT_OLDEST_DATETIME, stdair::EventType::OPT_NOT_4_FD, stdair::EventType::RM, and stdair::EventType::SNAPSHOT.
|
inline |
Get a reference on the booking request referred to by event.
Definition at line 59 of file EventStruct.hpp.
Referenced by stdair::BomJSONExport::jsonExportBookingRequestObject().
|
inline |
Get a reference on the cancellation referred to by event.
Definition at line 70 of file EventStruct.hpp.
|
inline |
Get a reference on the optimisation notification referred to by event.
Definition at line 83 of file EventStruct.hpp.
|
inline |
Get a reference on the snapshot referred to by event.
Definition at line 95 of file EventStruct.hpp.
|
inline |
Get a reference on the RM event referred to by the generic event.
Definition at line 107 of file EventStruct.hpp.
|
inline |
Get a reference on the break point referred to by event.
Definition at line 118 of file EventStruct.hpp.
Referenced by stdair::BomJSONExport::jsonExportBreakPointObject().
|
virtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 247 of file EventStruct.cpp.
|
virtual |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 251 of file EventStruct.cpp.
References stdair::EventType::BKG_REQ, stdair::EventType::BRK_PT, stdair::EventType::CX, stdair::DEFAULT_EVENT_OLDEST_DATETIME, stdair::EventType::getLabel(), stdair::EventType::OPT_NOT_4_FD, stdair::EventType::RM, and stdair::EventType::SNAPSHOT.
void stdair::EventStruct::incrementEventTimeStamp | ( | ) |
Increment the date-time stamp which is counted in milliseconds.
This incrementation of one millisecond is needed when the insertion in the event queue failed, that is to say when an event with the exact same time stamp has already been inserted in the queue.
Definition at line 357 of file EventStruct.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().