| The Gaudi Framework v28r2-patches (bc4ad17a)

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

- File List
- File Members

HistogramAgent.h
Go to the documentation of this file.
1 // $Id: HistogramAgent.h,v 1.3 2003/04/15 07:51:15 mato Exp $
2 #ifndef GAUDIKERNEL_HISTOGRAMAGENT_H
3 #define GAUDIKERNEL_HISTOGRAMAGENT_H
4
5 #include "GaudiKernel/ClassID.h"
6 #include "GaudiKernel/IRegistry.h"
7 #include "GaudiKernel/IDataSelector.h"
8 #include "GaudiKernel/IDataStoreAgent.h"
9
18 class HistogramAgent : virtual public IDataStoreAgent {
19 protected:
20 IDataSelector m_objects;
21 public:
23 HistogramAgent() {
24 }
26 virtual ~HistogramAgent() {
27 }
29 IDataSelector* selectedObjects() {
30 return &m_objects;
31 }
33 bool analyse(IRegistry* pRegistry, int ) override {
34 DataObject* obj = pRegistry->object();
35 if ( 0 != obj ) {
36 if ( obj->clID() != CLID_StatisticsFile ) {
37 m_objects.push_back(obj);
38 return true;
39 }
40 }
41 return false;
42 }
43 };
44 #endif // GAUDIKERNEL_HISTOGRAMAGENT_H
IDataSelector.h
ClassID.h
HistogramAgent::HistogramAgent
HistogramAgent()
Default creator.
Definition: HistogramAgent.h:23
HistogramAgent
HistogramAgent base in charge of collecting all the refereces to DataObjects in a transient store tha...
Definition: HistogramAgent.h:17
HistogramAgent::analyse
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Definition: HistogramAgent.h:33
HistogramAgent::~HistogramAgent
virtual ~HistogramAgent()
Destructor.
Definition: HistogramAgent.h:26
std::vector::push_back
T push_back(T...args)
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:68
IRegistry.h
IRegistry
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
HistogramAgent::selectedObjects
IDataSelector * selectedObjects()
Return the set of selected DataObjects.
Definition: HistogramAgent.h:29
IDataStoreAgent.h
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:19
std::vector< DataObject * >
IDataStoreAgent
Generic data agent interface.
Definition: IDataStoreAgent.h:16
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30