| The Gaudi Framework v29r1 (5cd95fa2)

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

- File List
- File Members

DataSelectionAgent.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATASELECTIONAGENT_H
2 #define GAUDIKERNEL_DATASELECTIONAGENT_H
3
4 #include "GaudiKernel/IDataSelector.h"
5 #include "GaudiKernel/IDataStoreAgent.h"
6 #include "GaudiKernel/IRegistry.h"
7
16 class DataSelectionAgent : virtual public IDataStoreAgent
17 {
18 protected:
19 IDataSelector m_objects;
20
21 public:
23 DataSelectionAgent() {}
25 virtual ~DataSelectionAgent() {}
27 IDataSelector* selectedObjects() { return &m_objects; }
29 bool analyse( IRegistry* pRegistry, int ) override
30 {
31 DataObject* obj = pRegistry->object();
32 if ( 0 != obj ) m_objects.push_back( obj );
33 return true;
34 }
35 };
36 #endif // GAUDIKERNEL_DATASELECTIONAGENT_H
IDataSelector.h
DataSelectionAgent::m_objects
IDataSelector m_objects
Definition: DataSelectionAgent.h:19
DataSelectionAgent
DataSelectionAgent base in charge of collecting all the refereces to DataObjects in a transient store...
Definition: DataSelectionAgent.h:16
DataSelectionAgent::~DataSelectionAgent
virtual ~DataSelectionAgent()
Destructor.
Definition: DataSelectionAgent.h:25
DataSelectionAgent::DataSelectionAgent
DataSelectionAgent()
Default creator.
Definition: DataSelectionAgent.h:23
DataSelectionAgent::selectedObjects
IDataSelector * selectedObjects()
Return the set of selected DataObjects.
Definition: DataSelectionAgent.h:27
std::vector::push_back
T push_back(T...args)
IRegistry.h
IRegistry
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
IDataStoreAgent.h
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
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:29
DataSelectionAgent::analyse
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Definition: DataSelectionAgent.h:29