Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AppMgrRunable.cpp
Go to the documentation of this file.
1 #define GAUDISVC_APPMGRRUNABLE_CPP
2 
3 #include "GaudiKernel/SmartIF.h"
6 
7 #include "AppMgrRunable.h"
8 
9 // Instantiation of a static factory class used by clients to create instances of this service
10 
12 
13 // Standard Constructor
14 AppMgrRunable::AppMgrRunable(const std::string& nam, ISvcLocator* svcLoc)
15 : base_class(nam, svcLoc), m_appMgrUI(0)
16 {
17  declareProperty("EvtMax", m_evtMax=0xFEEDBABE);
18 }
19 
20 // Standard Destructor
22 {
23 }
24 
25 // IService implementation: initialize the service
28  if ( sc.isSuccess() ) {
29  sc = serviceLocator()->queryInterface(IAppMgrUI::interfaceID(), pp_cast<void>(&m_appMgrUI));
30  // get property from application manager
31  if ( m_evtMax == (int)0xFEEDBABE ) {
33  setProperty(props->getProperty("EvtMax")).ignore();
34  }
35  }
36  return sc;
37 }
38 
39 // IService implementation: initialize the service
42  return sc;
43 }
44 
45 // IService implementation: initialize the service
48  return sc;
49 }
50 
51 // IService implementation: finalize the service
54  if ( 0 != m_appMgrUI ) m_appMgrUI->release();
55  m_appMgrUI = 0;
56  return sc;
57 }
58 
59 // IRunable implementation : Run the class implementation
61  if ( 0 != m_appMgrUI ) {
62  // loop over the events
63  return m_appMgrUI->nextEvent(m_evtMax);
64  }
65  return StatusCode::FAILURE;
66 }

Generated at Wed Jun 4 2014 14:48:56 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004