All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecordDataSvc.h
Go to the documentation of this file.
1 // $Id: RecordDataSvc.h,v 1.1 2008/12/10 18:37:36 marcocle Exp $
2 #ifndef DATASVC_RECORDDATASVC_H
3 #define DATASVC_RECORDDATASVC_H
4 
5 #include "GaudiKernel/DataSvc.h"
7 class IConversionSvc;
8 
9 
26 class RecordDataSvc : public extends1<DataSvc, IIncidentListener> {
27  protected:
28  typedef std::vector<std::string> StringV;
29  public:
30  virtual StatusCode initialize();
31  virtual StatusCode reinitialize();
32  virtual StatusCode finalize();
33 
35  virtual void handle(const Incident& incident);
36 
38  RecordDataSvc(const std::string& name, ISvcLocator* svc);
39 
41  virtual ~RecordDataSvc();
42 
43  protected:
45  void registerRecord(const std::string& data, IOpaqueAddress* pAddr);
46 
48  void loadRecords(IRegistry* pReg);
49 
50  protected:
52  bool m_autoLoad;
54  std::string m_incidentName;
56  std::string m_saveIncidentName;
58  std::string m_persSvcName;
63 };
64 #endif // DATASVC_RECORDDATASVC_H
std::string m_persSvcName
Property: name of the persistency service.
Definition: RecordDataSvc.h:58
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual StatusCode reinitialize()
Service reinitialisation.
std::string m_incidentName
Property: name of incident to be fired if new record arrives.
Definition: RecordDataSvc.h:54
bool m_autoLoad
Property: autoload of records (default: true)
Definition: RecordDataSvc.h:52
virtual void handle(const Incident &incident)
IIncidentListener override: Inform that a new incident has occured.
A RecordDataSvc is the base class for event services.
Definition: RecordDataSvc.h:26
virtual StatusCode finalize()
Service finalization.
std::string m_saveIncidentName
Property: name of the "save" incident.
Definition: RecordDataSvc.h:56
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual StatusCode initialize()
Service initialisation.
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
virtual const std::string & name() const
Retrieve name of the service.
Definition: Service.cpp:331
StringV m_incidents
Pending new file incidents.
Definition: RecordDataSvc.h:60
virtual ~RecordDataSvc()
Standard Destructor.
Base class for all Incidents (computing events).
Definition: Incident.h:16
RecordDataSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
void registerRecord(const std::string &data, IOpaqueAddress *pAddr)
Load new record into the data store if necessary.
Opaque address interface definition.
std::vector< std::string > StringV
Definition: RecordDataSvc.h:28
IConversionSvc * m_cnvSvc
Reference to the main data conversion service.
Definition: RecordDataSvc.h:62
void loadRecords(IRegistry *pReg)
Load dependent records into memory.