8 #include <stdair/STDAIR_Service.hpp>
9 #include <stdair/basic/BasConst_General.hpp>
10 #include <stdair/factory/FacBom.hpp>
19 SEVMGR_ServiceContext::SEVMGR_ServiceContext()
20 : _eventQueue (NULL) {
25 SEVMGR_ServiceContext::
26 SEVMGR_ServiceContext (
const SEVMGR_ServiceContext& iServiceContext)
27 : _eventQueue (iServiceContext._eventQueue) {
31 SEVMGR_ServiceContext::~SEVMGR_ServiceContext() {
35 void SEVMGR_ServiceContext::init() {
41 void SEVMGR_ServiceContext::initEventQueue() {
44 const EventQueueKey lKey (
"EQ01");
47 EventQueue& lEventQueue = stdair::FacBom<EventQueue>::instance().create (lKey);
50 _eventQueue = &lEventQueue;
54 const std::string SEVMGR_ServiceContext::shortDisplay()
const {
55 std::ostringstream oStr;
56 oStr <<
"SEVMGR_ServiceContext -- Owns StdAir service: "
58 if (_eventQueue != NULL) {
59 oStr <<
" -- Queue: " << _eventQueue->
toString();
65 const std::string SEVMGR_ServiceContext::display()
const {
66 std::ostringstream oStr;
67 oStr << shortDisplay();
72 const std::string SEVMGR_ServiceContext::describe()
const {
73 return shortDisplay();
77 void SEVMGR_ServiceContext::reset() {
84 _stdairService.reset();
88 EventQueue& SEVMGR_ServiceContext::getEventQueue()
const {
89 assert (_eventQueue != NULL);