The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
DataHistory.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 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\***********************************************************************************/
13#include <iostream>
14
15using std::endl;
16using std::ostream;
17
18DataHistory::DataHistory( const CLID& id, std::string key, AlgorithmHistory* alg )
19 : m_dataClassID( id ), m_dataKey( std::move( key ) ), m_algHist( alg ) {}
20
22 static const CLID CLID_DataHistory = 83814411; // from `clid DataHistory`
23
24 return CLID_DataHistory;
25}
26
27std::ostream& DataHistory::dump( std::ostream& ost, bool /*isXML*/, int /*ind*/ ) const {
28 return ost << "ClassID: " << dataClassID() << '\n'
29 << "Key: " << dataKey() << '\n'
30 << "AlgorithmHistory: " << (void*)algorithmHistory() << endl;
31}
unsigned int CLID
Class ID definition.
Definition ClassID.h:16
AlgorithmHistory class definition.
const std::string & dataKey() const
Definition DataHistory.h:49
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
static const CLID & classID()
std::string m_dataKey
Definition DataHistory.h:59
const CLID & dataClassID() const
Definition DataHistory.h:50
std::ostream & dump(std::ostream &, const bool isXML, int indent) const override
CLID m_dataClassID
Definition DataHistory.h:58
AlgorithmHistory * m_algHist
Definition DataHistory.h:60
AlgorithmHistory * algorithmHistory() const
Definition DataHistory.h:52
STL namespace.