| The Gaudi Framework v28r2p1 (f1a77ff4)

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

- File List
- File Members

DataHistory.cpp
Go to the documentation of this file.
1 //
3 // GaudiHistory/DataHistory.cpp
4 //
5 // Contains history information for a Data Object
6 //
7 //
8 // @author: Charles Leggett
9 //
11
12 #include "GaudiKernel/DataHistory.h"
13 #include "GaudiKernel/AlgorithmHistory.h"
14 #include <iostream>
15
16 using std::ostream;
17 using std::endl;
18
19 //**********************************************************************
20 // Member functions.
21 //**********************************************************************
22
23 // Default constructor.
24
25 DataHistory::DataHistory(const CLID& id, std::string key,
26 AlgorithmHistory* alg):
27 m_dataClassID(id), m_dataKey(std::move(key)), m_algHist(alg)
28 {
29
30
31 }
32
33 //**********************************************************************
34
35 const CLID&
36 DataHistory::classID() {
37 static const CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
38
39 return CLID_DataHistory;
40 }
41
42 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
43
44 void
45 DataHistory::dump(std::ostream& ost, const bool /*isXML*/, int /*ind*/) const {
46 ost << "ClassID: " << dataClassID() << endl
47 << "Key: " << dataKey() << endl
48 << "AlgorithmHistory: " << (void*) algorithmHistory() << endl;
49 }
50
51 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
52
53
54 ostream& operator<<(ostream& lhs, const DataHistory& rhs) {
55
56 rhs.dump(lhs,false);
57 return lhs;
58
59 }
DataHistory::algorithmHistory
AlgorithmHistory * algorithmHistory() const
Definition: DataHistory.h:65
AlgorithmHistory
AlgorithmHistory class definition.
Definition: AlgorithmHistory.h:26
std::endl
T endl(T...args)
std
STL namespace.
DataHistory.h
std::string
STL class.
DataHistory
DataHistory class definition.
Definition: DataHistory.h:23
DataHistory::dump
void dump(std::ostream &, const bool isXML=false, int indent=0) const override
Definition: DataHistory.cpp:45
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
DataObject::operator<<
friend std::ostream & operator<<(std::ostream &s, const DataObject &obj)
Output operator (ASCII)
Definition: DataObject.h:99
DataHistory::DataHistory
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
Definition: DataHistory.cpp:25
DataHistory::dataKey
std::string dataKey() const
Definition: DataHistory.h:62
DataHistory::classID
static const CLID & classID()
Definition: DataHistory.cpp:36
std::ostream
STL class.
AlgorithmHistory.h
DataHistory::dataClassID
const CLID & dataClassID() const
Definition: DataHistory.h:63