|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Class definition of AppMgrRunable. More...
#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. | |
Class definition of AppMgrRunable.
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.
: base_class(nam, svcLoc), m_appMgrUI(0) { declareProperty("EvtMax", m_evtMax=0xFEEDBABE); }
| AppMgrRunable::~AppMgrRunable | ( | ) | [virtual] |
| StatusCode AppMgrRunable::finalize | ( | ) | [virtual] |
IService implementation: finalize the service.
Reimplemented from Service.
Definition at line 54 of file AppMgrRunable.cpp.
{
StatusCode sc = Service::finalize();
if ( 0 != m_appMgrUI ) m_appMgrUI->release();
m_appMgrUI = 0;
return sc;
}
| StatusCode AppMgrRunable::initialize | ( | ) | [virtual] |
IService implementation: initialize the service.
Reimplemented from Service.
Definition at line 28 of file AppMgrRunable.cpp.
{
StatusCode sc = Service::initialize();
if ( sc.isSuccess() ) {
sc = serviceLocator()->queryInterface(IAppMgrUI::interfaceID(), pp_cast<void>(&m_appMgrUI));
// get property from application manager
if ( m_evtMax == (int)0xFEEDBABE ) {
SmartIF<IProperty> props(serviceLocator());
setProperty(props->getProperty("EvtMax")).ignore();
}
}
return sc;
}
| StatusCode AppMgrRunable::run | ( | ) | [virtual] |
IRunable implementation : Run the class implementation.
Implements IRunable.
Definition at line 62 of file AppMgrRunable.cpp.
{
if ( 0 != m_appMgrUI ) {
// loop over the events
return m_appMgrUI->nextEvent(m_evtMax);
}
return StatusCode::FAILURE;
}
| StatusCode AppMgrRunable::start | ( | ) | [virtual] |
IService implementation: start the service.
Reimplemented from Service.
Definition at line 42 of file AppMgrRunable.cpp.
{
StatusCode sc = Service::start();
return sc;
}
| StatusCode AppMgrRunable::stop | ( | ) | [virtual] |
IService implementation: stop the service.
Reimplemented from Service.
Definition at line 48 of file AppMgrRunable.cpp.
{
StatusCode sc = Service::stop();
return sc;
}
friend class SvcFactory< AppMgrRunable > [friend] |
Creator friend.
Definition at line 32 of file AppMgrRunable.h.
IAppMgrUI* AppMgrRunable::m_appMgrUI [protected] |
Reference to application manager UI.
Definition at line 36 of file AppMgrRunable.h.
int AppMgrRunable::m_evtMax [protected] |
Number of events to be processed.
Definition at line 38 of file AppMgrRunable.h.