| The Gaudi Framework v32r1 (f65d50dc)

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::endl;
17 using std::ostream;
18
19 //**********************************************************************
20 // Member functions.
21 //**********************************************************************
22
23 // Default constructor.
24
25 DataHistory::DataHistory( const CLID& id, std::string key, AlgorithmHistory* alg )
26 : m_dataClassID( id ), m_dataKey( std::move( key ) ), m_algHist( alg ) {}
27
28 //**********************************************************************
29
30 const CLID& DataHistory::classID() {
31 static const CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
32
33 return CLID_DataHistory;
34 }
35
36 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
37
38 void DataHistory::dump( std::ostream& ost, const bool /*isXML*/, int /*ind*/ ) const {
39 ost << "ClassID: " << dataClassID() << endl
40 << "Key: " << dataKey() << endl
41 << "AlgorithmHistory: " << (void*)algorithmHistory() << endl;
42 }
43
44 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
45
46 ostream& operator<<( ostream& lhs, const DataHistory& rhs ) {
47
48 rhs.dump( lhs, false );
49 return lhs;
50 }
DataHistory::dataClassID
const CLID & dataClassID() const
Definition: DataHistory.h:41
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:69
DataHistory::algorithmHistory
AlgorithmHistory * algorithmHistory() const
Definition: DataHistory.h:43
operator<<
ostream & operator<<(ostream &lhs, const DataHistory &rhs)
Definition: DataHistory.cpp:46
AlgorithmHistory
AlgorithmHistory class definition.
Definition: AlgorithmHistory.h:28
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:38
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
DataHistory::DataHistory
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
Definition: DataHistory.cpp:25
DataHistory::dataKey
std::string dataKey() const
Definition: DataHistory.h:40
DataHistory::classID
static const CLID & classID()
Definition: DataHistory.cpp:30
std::ostream
STL class.
AlgorithmHistory.h