| The Gaudi Framework v27r1

- 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/IRegistry.h"
5 #include "GaudiKernel/IDataSelector.h"
6 #include "GaudiKernel/IDataStoreAgent.h"
7
16 class DataSelectionAgent : virtual public IDataStoreAgent {
17 protected:
18 IDataSelector m_objects;
19 public:
21 DataSelectionAgent() {
22 }
24 virtual ~DataSelectionAgent() {
25 }
27 IDataSelector* selectedObjects() {
28 return &m_objects;
29 }
31 virtual bool analyse(IRegistry* pRegistry, int ) {
32 DataObject* obj = pRegistry->object();
33 if ( 0 != obj ) m_objects.push_back(obj);
34 return true;
35 }
36 };
37 #endif // GAUDIKERNEL_DATASELECTIONAGENT_H
IDataSelector.h
DataSelectionAgent::m_objects
IDataSelector m_objects
Definition: DataSelectionAgent.h:18
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:24
DataSelectionAgent::DataSelectionAgent
DataSelectionAgent()
Default creator.
Definition: DataSelectionAgent.h:21
DataSelectionAgent::selectedObjects
IDataSelector * selectedObjects()
Return the set of selected DataObjects.
Definition: DataSelectionAgent.h:27
std::vector::push_back
T push_back(T...args)
DataSelectionAgent::analyse
virtual bool analyse(IRegistry *pRegistry, int)
Analyses a given directory entry.
Definition: DataSelectionAgent.h:31
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:30