All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
DataSelectionAgent.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATASELECTIONAGENT_H
2 #define GAUDIKERNEL_DATASELECTIONAGENT_H
3 
7 
16 class DataSelectionAgent : virtual public IDataStoreAgent {
17 protected:
19 public:
22  }
24  virtual ~DataSelectionAgent() {
25  }
28  return &m_objects;
29  }
31  bool analyse(IRegistry* pRegistry, int ) override {
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 m_objects
DataSelectionAgent base in charge of collecting all the refereces to DataObjects in a transient store...
virtual ~DataSelectionAgent()
Destructor.
DataSelectionAgent()
Default creator.
IDataSelector * selectedObjects()
Return the set of selected DataObjects.
T push_back(T...args)
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
virtual DataObject * object() const =0
Retrieve object behind the link.
Generic data agent interface.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.