Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

DataSelectionAgent.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GaudiKernel/GaudiKernel/DataSelectionAgent.h,v 1.1.1.1 2001/04/18 18:14:18 tlindner Exp $
00002 #ifndef GAUDIKERNEL_DATASELECTIONAGENT_H
00003 #define GAUDIKERNEL_DATASELECTIONAGENT_H
00004 
00005 
00006 #include "GaudiKernel/IDataSelector.h"
00007 #include "GaudiKernel/IDataDirectory.h"
00008 #include "GaudiKernel/IDataStoreAgent.h"
00009 
00018 class DataSelectionAgent : virtual public IDataStoreAgent  {
00019 protected:
00020   IDataSelector m_objects;
00021 public:
00023   DataSelectionAgent() {
00024   }
00026   virtual ~DataSelectionAgent()  {
00027   }
00029   IDataSelector* selectedObjects()    {
00030     return &m_objects;
00031   }
00033   virtual bool analyse(IDataDirectory* dir, int )   {
00034     DataObject* obj = dir->object();
00035     if ( 0 != obj ) m_objects.push_back(obj);
00036     return true;
00037   }
00038 };
00039 #endif // GAUDIKERNEL_DATASELECTIONAGENT_H

Generated at Wed Nov 21 12:22:03 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000