| The Gaudi Framework v27r1

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

- File List
- File Members

RecordDataSvc.h
Go to the documentation of this file.
1 #ifndef DATASVC_RECORDDATASVC_H
2 #define DATASVC_RECORDDATASVC_H
3
4 #include "GaudiKernel/DataSvc.h"
5 #include "GaudiKernel/IIncidentListener.h"
6 #include "GaudiKernel/IConversionSvc.h"
7
8
25 class RecordDataSvc : public extends<DataSvc,
26 IIncidentListener> {
27 public:
28 StatusCode initialize() override;
29 StatusCode finalize() override;
30
32 void handle(const Incident& incident) override;
33
35 RecordDataSvc(const std::string& name, ISvcLocator* svc);
36
38 ~RecordDataSvc() override = default;
39
40 protected:
42 void registerRecord(const std::string& data, IOpaqueAddress* pAddr);
43
45 void loadRecords(IRegistry* pReg);
46
47 protected:
49 bool m_autoLoad;
51 std::string m_incidentName;
53 std::string m_saveIncidentName;
55 std::string m_persSvcName;
57 std::vector<std::string> m_incidents;
59 SmartIF<IConversionSvc> m_cnvSvc;
60 };
61 #endif // DATASVC_RECORDDATASVC_H
RecordDataSvc::finalize
StatusCode finalize() override
Service finalization.
Definition: RecordDataSvc.cpp:82
RecordDataSvc::m_persSvcName
std::string m_persSvcName
Property: name of the persistency service.
Definition: RecordDataSvc.h:55
SmartIF< IConversionSvc >
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
RecordDataSvc::m_incidentName
std::string m_incidentName
Property: name of incident to be fired if new record arrives.
Definition: RecordDataSvc.h:51
RecordDataSvc::m_autoLoad
bool m_autoLoad
Property: autoload of records (default: true)
Definition: RecordDataSvc.h:49
RecordDataSvc
A RecordDataSvc is the base class for event services.
Definition: RecordDataSvc.h:25
std::string
STL class.
DataSvc.h
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
RecordDataSvc::m_saveIncidentName
std::string m_saveIncidentName
Property: name of the "save" incident.
Definition: RecordDataSvc.h:53
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
RecordDataSvc::m_incidents
std::vector< std::string > m_incidents
Pending new file incidents.
Definition: RecordDataSvc.h:57
IRegistry
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
std::vector< std::string >
IConversionSvc.h
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Incident
Base class for all Incidents (computing events).
Definition: Incident.h:17
RecordDataSvc::RecordDataSvc
RecordDataSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: RecordDataSvc.cpp:151
IIncidentListener.h
RecordDataSvc::handle
void handle(const Incident &incident) override
IIncidentListener override: Inform that a new incident has occured.
Definition: RecordDataSvc.cpp:90
RecordDataSvc::initialize
StatusCode initialize() override
Service initialisation.
Definition: RecordDataSvc.cpp:38
RecordDataSvc::registerRecord
void registerRecord(const std::string &data, IOpaqueAddress *pAddr)
Load new record into the data store if necessary.
Definition: RecordDataSvc.cpp:130
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
RecordDataSvc::m_cnvSvc
SmartIF< IConversionSvc > m_cnvSvc
Reference to the main data conversion service.
Definition: RecordDataSvc.h:59
RecordDataSvc::~RecordDataSvc
~RecordDataSvc() override=default
Standard Destructor.
RecordDataSvc::loadRecords
void loadRecords(IRegistry *pReg)
Load dependent records into memory.
Definition: RecordDataSvc.cpp:111