The Gaudi Framework  master (37c0b60a)
DataHistory.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
12 //
13 // GaudiHistory/DataHistory.cpp
14 //
15 // Contains history information for a Data Object
16 //
17 //
18 // @author: Charles Leggett
19 //
21 
24 #include <iostream>
25 
26 using std::endl;
27 using std::ostream;
28 
29 //**********************************************************************
30 // Member functions.
31 //**********************************************************************
32 
33 // Default constructor.
34 
36  : m_dataClassID( id ), m_dataKey( std::move( key ) ), m_algHist( alg ) {}
37 
38 //**********************************************************************
39 
41  static const CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
42 
43  return CLID_DataHistory;
44 }
45 
46 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
47 
48 std::ostream& DataHistory::dump( std::ostream& ost, bool /*isXML*/, int /*ind*/ ) const {
49  return ost << "ClassID: " << dataClassID() << '\n'
50  << "Key: " << dataKey() << '\n'
51  << "AlgorithmHistory: " << (void*)algorithmHistory() << endl;
52 }
DataHistory::algorithmHistory
AlgorithmHistory * algorithmHistory() const
Definition: DataHistory.h:53
std::string
STL class.
DataHistory::classID
static const CLID & classID()
Definition: DataHistory.cpp:40
GaudiPartProp.tests.id
id
Definition: tests.py:111
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:81
DataHistory::DataHistory
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
Definition: DataHistory.cpp:35
AlgorithmHistory
Definition: AlgorithmHistory.h:38
DataHistory::dump
std::ostream & dump(std::ostream &, const bool isXML, int indent) const override
Definition: DataHistory.cpp:48
std::ostream
STL class.
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
DataHistory::dataClassID
const CLID & dataClassID() const
Definition: DataHistory.h:51
std::endl
T endl(T... args)
AlgorithmHistory.h
std
STL namespace.
DataHistory::dataKey
const std::string & dataKey() const
Definition: DataHistory.h:50
DataHistory.h
ProduceConsume.key
key
Definition: ProduceConsume.py:84