21 STDAIR_ServiceContext::STDAIR_ServiceContext()
22 : _bomRoot (NULL), _eventQueue (NULL),
23 _initType (ServiceInitialisationType::NOT_YET_INITIALISED) {
29 STDAIR_ServiceContext::
30 STDAIR_ServiceContext (
const STDAIR_ServiceContext& iServiceContext)
31 : _bomRoot (iServiceContext._bomRoot),
32 _eventQueue (iServiceContext._eventQueue),
33 _initType (ServiceInitialisationType::NOT_YET_INITIALISED) {
38 STDAIR_ServiceContext::~STDAIR_ServiceContext() {
42 void STDAIR_ServiceContext::init() {
51 void STDAIR_ServiceContext::initBomRoot() {
52 _bomRoot = &FacBom<BomRoot>::instance().create();
56 void STDAIR_ServiceContext::initEventQueue() {
59 const EventQueueKey lKey (
"EQ01");
62 EventQueue& lEventQueue = FacBom<EventQueue>::instance().create (lKey);
65 _eventQueue = &lEventQueue;
69 const std::string STDAIR_ServiceContext::shortDisplay()
const {
70 std::ostringstream oStr;
71 oStr <<
"STDAIR_ServiceContext -- " << _initType
72 <<
" -- DB: " << _dbParams;
73 if (_eventQueue != NULL) {
74 oStr <<
" -- Queue: " << _eventQueue->
toString();
80 const std::string STDAIR_ServiceContext::display()
const {
81 std::ostringstream oStr;
82 oStr << shortDisplay();
87 const std::string STDAIR_ServiceContext::describe()
const {
88 return shortDisplay();
92 BomRoot& STDAIR_ServiceContext::getBomRoot()
const {
93 assert (_bomRoot != NULL);
98 EventQueue& STDAIR_ServiceContext::getEventQueue()
const {
99 assert (_eventQueue != NULL);