| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# RecordDataSvc.h

Go to the documentation of this file.

    00001 // $Id: RecordDataSvc.h,v 1.1 2008/12/10 18:37:36 marcocle Exp $
    00002 #ifndef DATASVC_RECORDDATASVC_H
    00003 #define DATASVC_RECORDDATASVC_H
    00004
    00005 #include "GaudiKernel/DataSvc.h"
    00006 #include "GaudiKernel/IIncidentListener.h"
    00007 class IConversionSvc;
    00008
    00009
    00026 class RecordDataSvc  : public extends1<DataSvc, IIncidentListener> {
    00027   friend class SvcFactory<RecordDataSvc>;
    00028  protected:
    00029   typedef std::vector<std::string> StringV;
    00030  public:
    00031   virtual StatusCode initialize();
    00032   virtual StatusCode reinitialize();
    00033   virtual StatusCode finalize();
    00034
    00036   virtual void handle(const Incident& incident);
    00037
    00039   RecordDataSvc(const std::string& name, ISvcLocator* svc);
    00040
    00042   virtual ~RecordDataSvc();
    00043
    00044  protected:
    00046   void registerRecord(const std::string& data, IOpaqueAddress* pAddr);
    00047
    00049   void loadRecords(IRegistry* pReg);
    00050
    00051  protected:
    00053   bool            m_autoLoad;
    00055   std::string     m_incidentName;
    00057   std::string     m_saveIncidentName;
    00059   std::string     m_persSvcName;
    00061   StringV         m_incidents;
    00063   IConversionSvc* m_cnvSvc;
    00064 };
    00065 #endif // DATASVC_RECORDDATASVC_H