1 #ifndef __SEVMGR_CMD_EVENTQUEUEMANAGER_HPP
2 #define __SEVMGR_CMD_EVENTQUEUEMANAGER_HPP
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/command/CmdAbstract.hpp>
10 #include <stdair/stdair_service_types.hpp>
16 struct ProgressStatusSet;
35 static void buildSampleQueue (stdair::STDAIR_ServicePtr_T,
41 static stdair::BookingRequestStruct buildSampleBookingRequest(stdair::STDAIR_ServicePtr_T,
42 const bool isForCRS =
false);
52 static void addEvent (
EventQueue&, stdair::EventStruct&);
57 static const std::string describeKey (
const EventQueue&);
62 static const std::string list (
const EventQueue&);
67 static const std::string list (
const EventQueue&,
68 const stdair::EventType::EN_EventType&);
73 static stdair::ProgressStatusSet popEvent (
EventQueue&,
74 stdair::EventStruct&);
79 static void run (
EventQueue&, stdair::EventStruct&);
97 static bool select (
EventQueue&, stdair::EventStruct&,
const stdair::DateTime_T&);
103 const stdair::EventType::EN_EventType&,
104 const stdair::Count_T&);
110 const stdair::EventType::EN_EventType&,
111 const stdair::Count_T&);
117 static bool hasProgressStatus (
const EventQueue&,
118 const stdair::EventType::EN_EventType&);
129 static const stdair::Count_T& getQueueSize(
const EventQueue&);
134 static const stdair::Count_T&
135 getExpectedTotalNumberOfEventsToBeGenerated(
const EventQueue&);
140 static const stdair::Count_T&
141 getExpectedTotalNumberOfEventsToBeGenerated(
const EventQueue&,
142 const stdair::EventType::EN_EventType&);
147 static const stdair::Count_T&
148 getActualTotalNumberOfEventsToBeGenerated(
const EventQueue&);
153 static const stdair::Count_T&
154 getActualTotalNumberOfEventsToBeGenerated(
const EventQueue&,
155 const stdair::EventType::EN_EventType&);
160 static const stdair::ProgressStatus& getStatus (
const EventQueue&,
161 const stdair::EventType::EN_EventType&);
167 static const stdair::ProgressStatus& getStatus (
const EventQueue&);
172 #endif // __SEVMGR_CMD_EVENTQUEUEMANAGER_HPP