All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DataHistory.cpp
Go to the documentation of this file.
1 //
3 // $Id: DataHistory.cpp,v 1.1 2006/11/09 10:24:05 mato Exp $
4 //
5 // GaudiHistory/DataHistory.cpp
6 //
7 // Contains history information for a Data Object
8 //
9 //
10 // @author: Charles Leggett
11 //
13 
16 #include <iostream>
17 
18 using std::ostream;
19 using std::endl;
20 
21 //**********************************************************************
22 // Member functions.
23 //**********************************************************************
24 
25 // Default constructor.
26 
27 DataHistory::DataHistory(const CLID& id, const std::string& key,
28  AlgorithmHistory* alg):
29  m_dataClassID(id), m_dataKey(key), m_algHist(alg), m_dummy("none")
30 {
31 
32 
33 }
34 
35 //**********************************************************************
36 
37 const CLID&
39  static CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
40 
41  return CLID_DataHistory;
42 }
43 
44 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
45 
46 void
47 DataHistory::dump(std::ostream& ost, const bool /*isXML*/, int /*ind*/) const {
48  ost << "ClassID: " << dataClassID() << endl
49  << "Key: " << dataKey() << endl
50  << "AlgorithmHistory: " << (void*) algorithmHistory() << endl;
51 }
52 
53 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
54 
55 
56 ostream& operator<<(ostream& lhs, const DataHistory& rhs) {
57 
58  rhs.dump(lhs,false);
59 
60  return lhs;
61 
62 }
AlgorithmHistory * algorithmHistory() const
Definition: DataHistory.h:67
ostream & operator<<(ostream &lhs, const DataHistory &rhs)
Definition: DataHistory.cpp:56
AlgorithmHistory class definition.
DataHistory class definition.
Definition: DataHistory.h:25
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
std::string dataKey() const
Definition: DataHistory.h:64
DataHistory(const CLID &id, const std::string &key, AlgorithmHistory *alg)
Definition: DataHistory.cpp:27
static const CLID & classID()
Definition: DataHistory.cpp:38
void dump(std::ostream &, const bool isXML=false, int indent=0) const
Definition: DataHistory.cpp:47
const CLID & dataClassID() const
Definition: DataHistory.h:65