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