|
Gaudi Framework, version v21r8 |
| Home | Generated: 17 Mar 2010 |
#include <AppMgrRunable.h>


Public Member Functions | |
| AppMgrRunable (const std::string &nam, ISvcLocator *svcLoc) | |
| Standard Constructor. | |
| virtual | ~AppMgrRunable () |
| Standard Destructor. | |
| virtual StatusCode | initialize () |
| IService implementation: initialize the service. | |
| virtual StatusCode | start () |
| IService implementation: start the service. | |
| virtual StatusCode | stop () |
| IService implementation: stop the service. | |
| virtual StatusCode | finalize () |
| IService implementation: finalize the service. | |
| virtual StatusCode | run () |
| IRunable implementation : Run the class implementation. | |
Protected Attributes | |
| IAppMgrUI * | m_appMgrUI |
| Reference to application manager UI. | |
| int | m_evtMax |
| Number of events to be processed. | |
Friends | |
| class | SvcFactory< AppMgrRunable > |
| Creator friend. | |
This is the default runnable of the application manager. The runable handles the actual run() implementation of the ApplicationMgr object. This implementation just calls ApplicationMgr::nextEvent(...).
History:
+---------+----------------------------------------------+---------+
| Date | Comment | Who |
+---------+----------------------------------------------+---------+
|13/12/00 | Initial version | M.Frank |
+---------+----------------------------------------------+---------+
Definition at line 30 of file AppMgrRunable.h.
| AppMgrRunable::AppMgrRunable | ( | const std::string & | nam, | |
| ISvcLocator * | svcLoc | |||
| ) |
Standard Constructor.
Definition at line 16 of file AppMgrRunable.cpp.
00017 : base_class(nam, svcLoc), m_appMgrUI(0) 00018 { 00019 declareProperty("EvtMax", m_evtMax=0xFEEDBABE); 00020 }
| AppMgrRunable::~AppMgrRunable | ( | ) | [virtual] |
| StatusCode AppMgrRunable::initialize | ( | ) | [virtual] |
IService implementation: initialize the service.
Reimplemented from Service.
Definition at line 28 of file AppMgrRunable.cpp.
00028 { 00029 StatusCode sc = Service::initialize(); 00030 if ( sc.isSuccess() ) { 00031 sc = serviceLocator()->queryInterface(IAppMgrUI::interfaceID(), pp_cast<void>(&m_appMgrUI)); 00032 // get property from application manager 00033 if ( m_evtMax == (int)0xFEEDBABE ) { 00034 SmartIF<IProperty> props(serviceLocator()); 00035 setProperty(props->getProperty("EvtMax")).ignore(); 00036 } 00037 } 00038 return sc; 00039 }
| StatusCode AppMgrRunable::start | ( | ) | [virtual] |
IService implementation: start the service.
Reimplemented from Service.
Definition at line 42 of file AppMgrRunable.cpp.
00042 { 00043 StatusCode sc = Service::start(); 00044 return sc; 00045 }
| StatusCode AppMgrRunable::stop | ( | ) | [virtual] |
IService implementation: stop the service.
Reimplemented from Service.
Definition at line 48 of file AppMgrRunable.cpp.
00048 { 00049 StatusCode sc = Service::stop(); 00050 return sc; 00051 }
| StatusCode AppMgrRunable::finalize | ( | void | ) | [virtual] |
IService implementation: finalize the service.
Reimplemented from Service.
Definition at line 54 of file AppMgrRunable.cpp.
00054 { 00055 StatusCode sc = Service::finalize(); 00056 if ( 0 != m_appMgrUI ) m_appMgrUI->release(); 00057 m_appMgrUI = 0; 00058 return sc; 00059 }
| StatusCode AppMgrRunable::run | ( | ) | [virtual] |
IRunable implementation : Run the class implementation.
Implements IRunable.
Definition at line 62 of file AppMgrRunable.cpp.
00062 { 00063 if ( 0 != m_appMgrUI ) { 00064 // loop over the events 00065 return m_appMgrUI->nextEvent(m_evtMax); 00066 } 00067 return StatusCode::FAILURE; 00068 }
friend class SvcFactory< AppMgrRunable > [friend] |
IAppMgrUI* AppMgrRunable::m_appMgrUI [protected] |
int AppMgrRunable::m_evtMax [protected] |