1 #ifndef __SEVMGR_SEVMGR_SERVICE_HPP
2 #define __SEVMGR_SEVMGR_SERVICE_HPP
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/stdair_json.hpp>
10 #include <stdair/stdair_service_types.hpp>
11 #include <stdair/bom/EventTypes.hpp>
12 #include <stdair/bom/EventStruct.hpp>
16 struct ProgressStatusSet;
19 struct BookingRequestStruct;
25 class SEVMGR_ServiceContext;
50 SEVMGR_Service (
const stdair::BasLogParams&,
const stdair::BasDBParams&);
143 stdair::ProgressStatusSet
popEvent (stdair::EventStruct&)
const;
153 void run (stdair::EventStruct&)
const;
169 bool select (stdair::EventStruct&,
170 const stdair::DateTime_T&)
const;
180 template<
class EventGenerator>
186 void addEvent(stdair::EventStruct&)
const;
203 void updateStatus (
const stdair::EventType::EN_EventType&,
204 const stdair::Count_T&)
const;
215 void addStatus (
const stdair::EventType::EN_EventType&,
216 const stdair::Count_T&)
const;
251 template<
class EventGenerator,
class Key>
263 template<
class EventGenerator,
class Key>
275 template<
class EventGenerator>
287 template<
class EventGenerator>
322 const stdair::Count_T&
355 const stdair::Count_T&
361 const stdair::ProgressStatus&
getStatus ()
const;
367 const stdair::ProgressStatus&
getStatus (
const stdair::EventType::EN_EventType&)
const;
386 std::string
list ()
const;
397 std::string
list (
const stdair::EventType::EN_EventType&)
const;
409 std::string
jsonHandler (
const stdair::JSONString&)
const;
416 stdair::EventType::LAST_VALUE)
const;
439 void initServiceContext();
452 stdair::STDAIR_ServicePtr_T initStdAirService (
const stdair::BasLogParams&,
453 const stdair::BasDBParams&);
464 stdair::STDAIR_ServicePtr_T initStdAirService (
const stdair::BasLogParams&);
474 void addStdAirService (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
475 const bool iOwnStdairService);
483 void initSevmgrService();
498 const stdair::STDAIR_Service& getSTDAIR_Service()
const;
509 #endif // __SEVMGR_SEVMGR_SERVICE_HPP