| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

TimelineSvc.h
Go to the documentation of this file.
1
2 #ifndef GAUDIHIVE_TIMELINESVC_H
3 #define GAUDIHIVE_TIMELINESVC_H
4
5 #include "GaudiKernel/Service.h"
6 #include "GaudiKernel/ITimelineSvc.h"
7
8 #include <string>
9
10 #include "tbb/concurrent_vector.h"
11
12 class TimelineSvc: public extends<Service,
13 ITimelineSvc> {
14
15 public:
16
17 virtual StatusCode initialize();
18 virtual StatusCode reinitialize();
19 virtual StatusCode finalize();
20
21 virtual void registerTimelineEvent(const TimelineEvent & e);
22
23 bool isEnabled() const { return m_isEnabled; }
24
25 TimelineSvc( const std::string& name, ISvcLocator* svc );
26
27 // Destructor.
28 virtual ~TimelineSvc();
29
30 private:
31
32 void outputTimeline();
33
34 bool m_isEnabled;
35 bool m_partial;
36 std::string m_timelineFile;
37 tbb::concurrent_vector<TimelineEvent> m_events;
38
39 };
40
41 #endif
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
TimelineSvc::reinitialize
virtual StatusCode reinitialize()
Definition: TimelineSvc.cpp:50
TimelineSvc::isEnabled
bool isEnabled() const
Definition: TimelineSvc.h:23
TimelineEvent
Definition: ITimelineSvc.h:18
TimelineSvc::TimelineSvc
TimelineSvc(const std::string &name, ISvcLocator *svc)
Definition: TimelineSvc.cpp:7
std::string
STL class.
Service.h
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
TimelineSvc::m_timelineFile
std::string m_timelineFile
Definition: TimelineSvc.h:36
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
ITimelineSvc.h
TimelineSvc::registerTimelineEvent
virtual void registerTimelineEvent(const TimelineEvent &e)
Definition: TimelineSvc.cpp:82
TimelineSvc::m_partial
bool m_partial
Definition: TimelineSvc.h:35
TimelineSvc::m_events
tbb::concurrent_vector< TimelineEvent > m_events
Definition: TimelineSvc.h:37
TimelineSvc::initialize
virtual StatusCode initialize()
Definition: TimelineSvc.cpp:27
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
TimelineSvc::finalize
virtual StatusCode finalize()
Definition: TimelineSvc.cpp:63
TimelineSvc::outputTimeline
void outputTimeline()
Definition: TimelineSvc.cpp:105
TimelineSvc::m_isEnabled
bool m_isEnabled
Definition: TimelineSvc.h:34
TimelineSvc
Definition: TimelineSvc.h:12
TimelineSvc::~TimelineSvc
virtual ~TimelineSvc()
Definition: TimelineSvc.cpp:19