| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Member Functions | Protected Attributes | Friends

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

    : base_class(nam, svcLoc), m_appMgrUI(0)
    {
      declareProperty("EvtMax", m_evtMax=0xFEEDBABE);
    }

AppMgrRunable::~AppMgrRunable | ( | ) | `[virtual]`

Standard Destructor.

Definition at line 23 of file AppMgrRunable.cpp.

    {
    }

## Member Function Documentation

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;
    }

## 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_v23r0/GaudiCoreSvc/src/ApplicationMgr/AppMgrRunable.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiCoreSvc/src/ApplicationMgr/AppMgrRunable.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines