| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# AppMgrRunable Class Reference

Class definition of AppMgrRunable. More...

`#include <AppMgrRunable.h>`

Inheritance diagram for AppMgrRunable:

[legend]
Collaboration diagram for AppMgrRunable:

[legend]

List of all members.

## 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.

## Detailed Description

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 |
        +---------+----------------------------------------------+---------+

Author:
  Markus Frank

Version:
  1.0

Definition at line 30 of file AppMgrRunable.h.

## Constructor & Destructor Documentation

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]`

Standard Destructor.

Definition at line 23 of file AppMgrRunable.cpp.

    00024 {
    00025 }

## Member Function Documentation

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 }

## Friends And Related Function Documentation

friend class SvcFactory< AppMgrRunable >`[friend]`

Creator friend.

Definition at line 32 of file AppMgrRunable.h.

## Member Data Documentation

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.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7p1/GaudiSvc/src/ApplicationMgr/AppMgrRunable.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7p1/GaudiSvc/src/ApplicationMgr/AppMgrRunable.cpp