1. binet
  2. mana-core-gaudikernel

Source

mana-core-gaudikernel / src / Lib / DataHistory.cpp

///////////////////////////////////////////////////////////////////////////
//
// $Id: DataHistory.cpp,v 1.1 2006/11/09 10:24:05 mato Exp $
//
// GaudiHistory/DataHistory.cpp
//
// Contains history information for a Data Object
//
//
// @author: Charles Leggett
//
///////////////////////////////////////////////////////////////////////////

#include "GaudiKernel/DataHistory.h"
#include "GaudiKernel/AlgorithmHistory.h"
#include <iostream>

using std::ostream;
using std::endl;

//**********************************************************************
// Member functions.
//**********************************************************************

// Default constructor.

DataHistory::DataHistory(const CLID& id, const std::string& key,
			 AlgorithmHistory* alg):
  m_dataClassID(id), m_dataKey(key), m_algHist(alg), m_dummy("none")
{


}

//**********************************************************************

const CLID&
DataHistory::classID() {
  static CLID CLID_DataHistory = 83814411;   // from `clid DataHistory`
  
  return CLID_DataHistory;
}
  
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

void
DataHistory::dump(std::ostream& ost, const bool /*isXML*/, int /*ind*/) const {
  ost << "ClassID: " << dataClassID() << endl
      << "Key: " << dataKey() << endl
      << "AlgorithmHistory: " << (void*) algorithmHistory() << endl;
}
  
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

  
ostream& operator<<(ostream& lhs, const DataHistory& rhs) {

  rhs.dump(lhs,false);

  return lhs;

}