| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

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

- Search for |

- File List
- File Members

# DataHistory.cpp

Go to the documentation of this file.

    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)
    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 ostream& operator<<(ostream& lhs, const DataHistory& rhs) {
    00047
    00048   lhs << "ClassID: " << rhs.dataClassID() << endl
    00049       << "Key: " << rhs.dataKey() << endl
    00050       << "AlgorithHistory: " << (void*) rhs.algorithmHistory() << endl;
    00051
    00052   return lhs;
    00053
    00054 }