| The Gaudi Framework v29r1 (5cd95fa2)

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

- File List
- File Members

ServiceHistory.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_SERVICEHISTORY_H
2 #define GAUDIKERNEL_SERVICEHISTORY_H
3
4 #include "GaudiKernel/HistoryObj.h"
5 #include "GaudiKernel/IVersHistoryObj.h"
6
7 #include <string>
8 #include <vector>
9
10 class IService;
11 class JobHistory;
12
21 class GAUDI_API ServiceHistory : public HistoryObj, public IVersHistoryObj
22 {
23
24 public:
25 ServiceHistory();
26 ServiceHistory( const IService*, const JobHistory* );
27 ServiceHistory( const IService&, const JobHistory* );
28
29 virtual ~ServiceHistory() = default;
30
31 // Class IDs
32 const CLID& clID() const override { return classID(); }
33 static const CLID& classID();
34
35 // Return the service properties.
36 const PropertyList& properties() const override { return m_properties; }
37
38 const IService* service() const { return m_pService; }
39
40 const JobHistory* jobHistory() const { return m_jobHistory; }
41
42 void dump( std::ostream&, const bool isXML = false, int indent = 0 ) const override;
43
44 const std::string& name() const override { return m_name; }
45 const std::string& type() const override { return m_type; }
46 const std::string& version() const override { return m_version; }
47
48 private:
49 const IService* m_pService;
50 const JobHistory* m_jobHistory;
51 std::string m_name, m_type, m_version;
52 PropertyList m_properties;
53 };
54
55 // Output stream.
56 GAUDI_API std::ostream& operator<<( std::ostream& lhs, const ServiceHistory& rhs );
57
58 #endif
ServiceHistory::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition: ServiceHistory.h:32
HistoryObj::classID
static const CLID & classID()
Definition: HistoryObj.cpp:59
PropertyList
List of properties.
Definition: PropertyList.h:16
HistoryObj::dump
virtual void dump(std::ostream &, const bool isXML=false, int indent=0) const =0
HistoryObj
Base class for History Objects.
Definition: HistoryObj.h:21
HistoryObj.h
JobHistory
JobHistory class definition.
Definition: JobHistory.h:22
ServiceHistory::m_properties
PropertyList m_properties
Definition: ServiceHistory.h:52
IVersHistoryObj.h
ServiceHistory::service
const IService * service() const
Definition: ServiceHistory.h:38
std::string
STL class.
DataObject::m_version
unsigned char m_version
Version number.
Definition: DataObject.h:35
IService
General service interface definition.
Definition: IService.h:18
ServiceHistory::properties
const PropertyList & properties() const override
Definition: ServiceHistory.h:36
ServiceHistory::name
const std::string & name() const override
Definition: ServiceHistory.h:44
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
ServiceHistory::version
const std::string & version() const override
Definition: ServiceHistory.h:46
DataObject::operator<<
friend std::ostream & operator<<(std::ostream &s, const DataObject &obj)
Output operator (ASCII)
Definition: DataObject.h:88
ServiceHistory::jobHistory
const JobHistory * jobHistory() const
Definition: ServiceHistory.h:40
ServiceHistory::m_jobHistory
const JobHistory * m_jobHistory
Definition: ServiceHistory.h:50
ServiceHistory::m_version
std::string m_version
Definition: ServiceHistory.h:51
m_properties
Properties m_properties
Collection of all declared properties.
Definition: PropertyMgr.h:139
ServiceHistory
ServiceHistory class definition.
Definition: ServiceHistory.h:21
IVersHistoryObj
Interface for Versioned History Objects.
Definition: IVersHistoryObj.h:18
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
ServiceHistory::m_pService
const IService * m_pService
Definition: ServiceHistory.h:49
std::ostream
STL class.
ServiceHistory::type
const std::string & type() const override
Definition: ServiceHistory.h:45