Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AppMgrRunable.cpp
Go to the documentation of this file.
1 // $Id: AppMgrRunable.cpp,v 1.8 2008/06/02 14:21:35 marcocle Exp $
2 #define GAUDISVC_APPMGRRUNABLE_CPP
3 
4 #include "GaudiKernel/SmartIF.h"
8 
9 #include "AppMgrRunable.h"
10 
11 // Instantiation of a static factory class used by clients to create instances of this service
12 
14 
15 // Standard Constructor
16 AppMgrRunable::AppMgrRunable(const std::string& nam, ISvcLocator* svcLoc)
17 : base_class(nam, svcLoc), m_appMgrUI(0)
18 {
19  declareProperty("EvtMax", m_evtMax=0xFEEDBABE);
20 }
21 
22 // Standard Destructor
24 {
25 }
26 
27 // IService implementation: initialize the service
30  if ( sc.isSuccess() ) {
31  sc = serviceLocator()->queryInterface(IAppMgrUI::interfaceID(), pp_cast<void>(&m_appMgrUI));
32  // get property from application manager
33  if ( m_evtMax == (int)0xFEEDBABE ) {
35  setProperty(props->getProperty("EvtMax")).ignore();
36  }
37  }
38  return sc;
39 }
40 
41 // IService implementation: initialize the service
44  return sc;
45 }
46 
47 // IService implementation: initialize the service
50  return sc;
51 }
52 
53 // IService implementation: finalize the service
56  if ( 0 != m_appMgrUI ) m_appMgrUI->release();
57  m_appMgrUI = 0;
58  return sc;
59 }
60 
61 // IRunable implementation : Run the class implementation
63  if ( 0 != m_appMgrUI ) {
64  // loop over the events
65  return m_appMgrUI->nextEvent(m_evtMax);
66  }
67  return StatusCode::FAILURE;
68 }

Generated at Wed Dec 4 2013 14:33:07 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004