| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

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

- Search for |

- File List
- File Members

# DataSelectionAgent.h

Go to the documentation of this file.

    00001 // $Header: /local/reps/Gaudi/GaudiKernel/GaudiKernel/DataSelectionAgent.h,v 1.3 2001/11/12 08:42:58 mato Exp $
    00002 #ifndef GAUDIKERNEL_DATASELECTIONAGENT_H
    00003 #define GAUDIKERNEL_DATASELECTIONAGENT_H
    00004
    00005 #include "GaudiKernel/IRegistry.h"
    00006 #include "GaudiKernel/IDataSelector.h"
    00007 #include "GaudiKernel/IDataStoreAgent.h"
    00008
    00017 class DataSelectionAgent : virtual public IDataStoreAgent  {
    00018 protected:
    00019   IDataSelector m_objects;
    00020 public:
    00022   DataSelectionAgent() {
    00023   }
    00025   virtual ~DataSelectionAgent()  {
    00026   }
    00028   IDataSelector* selectedObjects()    {
    00029     return &m_objects;
    00030   }
    00032   virtual bool analyse(IRegistry* pRegistry, int )   {
    00033     DataObject* obj = pRegistry->object();
    00034     if ( 0 != obj ) m_objects.push_back(obj);
    00035     return true;
    00036   }
    00037 };
    00038 #endif // GAUDIKERNEL_DATASELECTIONAGENT_H