|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
00001 00002 // 00003 // $Id: DataHistory.cpp,v 1.1 2006/11/09 10:24:05 mato Exp $ 00004 // 00005 // GaudiHistory/DataHistory.cpp 00006 // 00007 // Contains history information for a Data Object 00008 // 00009 // 00010 // @author: Charles Leggett 00011 // 00013 00014 #include "GaudiKernel/DataHistory.h" 00015 #include "GaudiKernel/AlgorithmHistory.h" 00016 #include <iostream> 00017 00018 using std::ostream; 00019 using std::endl; 00020 00021 //********************************************************************** 00022 // Member functions. 00023 //********************************************************************** 00024 00025 // Default constructor. 00026 00027 DataHistory::DataHistory(const CLID& id, const std::string& key, 00028 AlgorithmHistory* alg): 00029 m_dataClassID(id), m_dataKey(key), m_algHist(alg), m_dummy("none") 00030 { 00031 00032 00033 } 00034 00035 //********************************************************************** 00036 00037 const CLID& 00038 DataHistory::classID() { 00039 static CLID CLID_DataHistory = 83814411; // from `clid DataHistory` 00040 00041 return CLID_DataHistory; 00042 } 00043 00044 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00045 00046 void 00047 DataHistory::dump(std::ostream& ost, const bool /*isXML*/, int /*ind*/) const { 00048 ost << "ClassID: " << dataClassID() << endl 00049 << "Key: " << dataKey() << endl 00050 << "AlgorithmHistory: " << (void*) algorithmHistory() << endl; 00051 } 00052 00053 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00054 00055 00056 ostream& operator<<(ostream& lhs, const DataHistory& rhs) { 00057 00058 rhs.dump(lhs,false); 00059 00060 return lhs; 00061 00062 }