| The Gaudi Framework v27r1

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

- File List
- File Members

AlgToolHistory.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_ALGTOOLHISTORY_H
2 #define GAUDIKERNEL_ALGTOOLHISTORY_H
3
4 #include "GaudiKernel/HistoryObj.h"
5 #include "GaudiKernel/IVersHistoryObj.h"
6
7 class Property;
8 class AlgTool;
9 class JobHistory;
10
11 #include <string>
12 #include <vector>
13
22 class GAUDI_API AlgToolHistory: public HistoryObj, public IVersHistoryObj {
23
24 private: // data
25
26 // Algtool full type.
27 std::string m_type;
28
29 // Algtool version.
30 std::string m_version;
31
32 // Algtool name.
33 std::string m_name;
34
35 // Pointer to the algtool
36 const AlgTool *m_tool;
37
38 // Properties.
39 PropertyList m_properties;
40
41 // Link to jobHistory
42 const JobHistory *m_jobHistory;
43
44 public:
45
46 AlgToolHistory(const AlgTool& alg, const JobHistory* job);
47
48 AlgToolHistory(const std::string& algVersion,
49 const std::string& algName,
50 const std::string& algType,
51 const AlgTool* tool,
52 const PropertyList& props,
53 const JobHistory* job);
54
55 // Destructor.
56 virtual ~AlgToolHistory() {};
57
58 // Class IDs
59 virtual const CLID& clID() const { return classID(); }
60 static const CLID& classID();
61
62 // Return the algtool type.
63 const std::string& algtool_type() const { return m_type; }
64
65 // Return the algtool version.
66 const std::string& algtool_version() const { return m_version; }
67
68 // Return the algtool name.
69 const std::string& algtool_name() const { return m_name; }
70
71 // Pointer to the algtool
72 const AlgTool* algtool_instance() const { return m_tool; }
73
74 // Return the algorithm properties.
75 const PropertyList& properties() const { return m_properties; }
76
77 // Return the jobHistory
78 const JobHistory* jobHistory() const { return m_jobHistory; }
79
80 void dump(std::ostream &, const bool isXML=false, int indent=0) const;
81
82 const std::string& name() const { return algtool_name(); }
83 const std::string& type() const { return algtool_type(); }
84 const std::string& version() const { return algtool_version(); }
85
86
87 };
88
89 // Output stream.
90 GAUDI_API std::ostream& operator<<(std::ostream& lhs, const AlgToolHistory& rhs);
91
92 #endif
93
AlgToolHistory::m_version
std::string m_version
Definition: AlgToolHistory.h:30
AlgToolHistory::m_jobHistory
const JobHistory * m_jobHistory
Definition: AlgToolHistory.h:42
AlgToolHistory::m_name
std::string m_name
Definition: AlgToolHistory.h:33
AlgToolHistory::m_properties
PropertyList m_properties
Definition: AlgToolHistory.h:39
AlgToolHistory::algtool_instance
const AlgTool * algtool_instance() const
Definition: AlgToolHistory.h:72
HistoryObj::classID
static const CLID & classID()
Definition: HistoryObj.cpp:50
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:22
HistoryObj.h
operator<<
GAUDI_API std::ostream & operator<<(std::ostream &lhs, const AlgToolHistory &rhs)
Definition: AlgToolHistory.cpp:106
JobHistory
JobHistory class definition.
Definition: JobHistory.h:24
IVersHistoryObj.h
AlgToolHistory::name
const std::string & name() const
Definition: AlgToolHistory.h:82
AlgToolHistory::jobHistory
const JobHistory * jobHistory() const
Definition: AlgToolHistory.h:78
AlgToolHistory::~AlgToolHistory
virtual ~AlgToolHistory()
Definition: AlgToolHistory.h:56
AlgToolHistory::m_type
std::string m_type
Definition: AlgToolHistory.h:27
std::string
STL class.
DataObject::m_version
unsigned char m_version
Version number.
Definition: DataObject.h:35
AlgToolHistory::type
const std::string & type() const
Definition: AlgToolHistory.h:83
AlgToolHistory::m_tool
const AlgTool * m_tool
Definition: AlgToolHistory.h:36
AlgToolHistory::properties
const PropertyList & properties() const
Definition: AlgToolHistory.h:75
AlgToolHistory::algtool_type
const std::string & algtool_type() const
Definition: AlgToolHistory.h:63
AlgToolHistory::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: AlgToolHistory.h:59
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
AlgToolHistory
AlgToolHistory class definition.
Definition: AlgToolHistory.h:22
Property
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:38
std::vector< Property * >
project_manifest.indent
def indent
Definition: project_manifest.py:11
AlgTool
Base class from which all the concrete tool classes should be derived.
Definition: AlgTool.h:45
AlgToolHistory::algtool_version
const std::string & algtool_version() const
Definition: AlgToolHistory.h:66
IVersHistoryObj
Interface for Versioned History Objects.
Definition: IVersHistoryObj.h:18
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
std::ostream
STL class.
AlgToolHistory::version
const std::string & version() const
Definition: AlgToolHistory.h:84
AlgToolHistory::algtool_name
const std::string & algtool_name() const
Definition: AlgToolHistory.h:69