| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ServiceHistory.h
Go to the documentation of this file.
1 // $Id: ServiceHistory.h,v 1.2 2008/06/04 12:35:15 marcocle Exp $
2
3 #ifndef GAUDIKERNEL_SERVICEHISTORY_H
4 #define GAUDIKERNEL_SERVICEHISTORY_H
5
6 #include "GaudiKernel/HistoryObj.h"
7 #include "GaudiKernel/IVersHistoryObj.h"
8
9 #include <string>
10 #include <vector>
11
12 class IService;
13 class Property;
14 class JobHistory;
15
24 class GAUDI_API ServiceHistory: public HistoryObj, public IVersHistoryObj {
25
26 public:
27 ServiceHistory();
28 ServiceHistory(const IService*, const JobHistory* ) ;
29 ServiceHistory(const IService&, const JobHistory* ) ;
30
31 virtual ~ServiceHistory();
32
33 // Class IDs
34 virtual const CLID& clID() const { return classID(); }
35 static const CLID& classID();
36
37 // Return the service properties.
38 const PropertyList& properties() const { return m_properties; }
39
40 const IService* service() const { return m_pService; }
41
42 const JobHistory* jobHistory() const { return m_jobHistory; }
43
44 void dump(std::ostream &, const bool isXML=false, int indent=0) const;
45
46 const std::string& name() const { return m_name; }
47 const std::string& type() const { return m_type; }
48 const std::string& version() const { return m_version; }
49
50
51 private:
52
53 const IService* m_pService;
54 const JobHistory* m_jobHistory;
55 std::string m_name,m_type,m_version;
56 PropertyList m_properties;
57
58 };
59
60 // Output stream.
61 GAUDI_API std::ostream& operator<<(std::ostream& lhs, const ServiceHistory& rhs);
62
63 #endif