The Gaudi Framework  v29r0 (ff2e7097)
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 
14 #include <iostream>
15 
16 using std::ostream;
17 using std::endl;
18 
19 //**********************************************************************
20 // Member functions.
21 //**********************************************************************
22 
23 // Default constructor.
24 
26  : m_dataClassID( id ), m_dataKey( std::move( key ) ), m_algHist( alg )
27 {
28 }
29 
30 //**********************************************************************
31 
33 {
34  static const CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
35 
36  return CLID_DataHistory;
37 }
38 
39 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
40 
41 void DataHistory::dump( std::ostream& ost, const bool /*isXML*/, int /*ind*/ ) const
42 {
43  ost << "ClassID: " << dataClassID() << endl
44  << "Key: " << dataKey() << endl
45  << "AlgorithmHistory: " << (void*)algorithmHistory() << endl;
46 }
47 
48 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
49 
50 ostream& operator<<( ostream& lhs, const DataHistory& rhs )
51 {
52 
53  rhs.dump( lhs, false );
54  return lhs;
55 }
AlgorithmHistory * algorithmHistory() const
Definition: DataHistory.h:66
AlgorithmHistory class definition.
T endl(T...args)
STL namespace.
STL class.
DataHistory class definition.
Definition: DataHistory.h:23
void dump(std::ostream &, const bool isXML=false, int indent=0) const override
Definition: DataHistory.cpp:41
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
friend std::ostream & operator<<(std::ostream &s, const DataObject &obj)
Output operator (ASCII)
Definition: DataObject.h:88
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
Definition: DataHistory.cpp:25
std::string dataKey() const
Definition: DataHistory.h:63
static const CLID & classID()
Definition: DataHistory.cpp:32
STL class.
const CLID & dataClassID() const
Definition: DataHistory.h:64