Gaudi Framework, version v23r6
Home
Generated: Wed Jan 30 2013
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiKernel
GaudiKernel
MinimalEventLoopMgr.h
Go to the documentation of this file.
1
// $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/MinimalEventLoopMgr.h,v 1.4 2008/07/15 12:48:18 marcocle Exp $
2
#ifndef GAUDIKERNEL_MINIMALEVENTLOOPMGR_H
3
#define GAUDIKERNEL_MINIMALEVENTLOOPMGR_H 1
4
5
// Framework include files
6
#include "
GaudiKernel/Service.h
"
7
#include "
GaudiKernel/IAppMgrUI.h
"
8
#include "
GaudiKernel/IEventProcessor.h
"
9
#include "
GaudiKernel/IAlgorithm.h
"
10
#include "
GaudiKernel/IIncidentSvc.h
"
11
#include "
GaudiKernel/IIncidentListener.h
"
12
13
// STL include files
14
#include <
list
>
15
#include <
vector
>
16
26
class
GAUDI_API
MinimalEventLoopMgr
:
public
extends1
<Service, IEventProcessor>
27
{
28
public
:
30
typedef
std::list<SmartIF<IAlgorithm>
>
ListAlg
;
31
typedef
std::list<IAlgorithm*>
ListAlgPtrs
;
32
typedef
std::list<std::string>
ListName
;
33
typedef
std::vector<std::string>
VectorName
;
34
35
protected
:
36
// enums
37
enum
State
{
OFFLINE
,
CONFIGURED
, FINALIZED,
INITIALIZED
};
39
SmartIF<IAppMgrUI>
m_appMgrUI
;
41
SmartIF<IIncidentSvc>
m_incidentSvc
;
43
ListAlg
m_topAlgList
;
45
ListAlg
m_outStreamList
;
47
std::string
m_outStreamType
;
49
StringArrayProperty
m_topAlgNames
;
51
StringArrayProperty
m_outStreamNames
;
53
State
m_state
;
55
bool
m_scheduledStop
;
57
SmartIF<IIncidentListener>
m_abortEventListener
;
60
bool
m_abortEvent
;
62
std::string
m_abortEventSource
;
63
64
public
:
66
MinimalEventLoopMgr
(
const
std::string
& nam,
ISvcLocator
* svcLoc);
68
virtual
~
MinimalEventLoopMgr
();
69
70
#if defined(GAUDI_V20_COMPAT) && !defined(G21_NO_DEPRECATED)
71
protected
:
73
template
<
class
T> T* releaseInterface(T* iface) {
74
if
( 0 != iface ) iface->release();
75
return
0;
76
}
77
public
:
78
#endif
79
81
virtual
StatusCode
initialize
();
83
virtual
StatusCode
start
();
85
virtual
StatusCode
stop();
87
virtual
StatusCode
finalize();
89
virtual
StatusCode
reinitialize();
91
virtual
StatusCode
restart();
92
94
virtual
StatusCode
nextEvent(
int
maxevt);
96
virtual
StatusCode
executeEvent(
void
*
par
);
98
virtual
StatusCode
executeRun(
int
maxevt);
100
virtual
StatusCode
stopRun();
101
103
void
topAlgHandler(
Property
& p);
105
StatusCode
decodeTopAlgs();
107
void
outStreamHandler(
Property
& p);
109
StatusCode
decodeOutStreams();
110
111
private
:
113
MinimalEventLoopMgr
(
const
MinimalEventLoopMgr
&);
115
MinimalEventLoopMgr
& operator= (
const
MinimalEventLoopMgr
&);
116
117
};
118
#endif // GAUDIKERNEL_MINIMALEVENTLOOPMGR_H
Generated at Wed Jan 30 2013 17:13:39 for Gaudi Framework, version v23r6 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004