Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HistoryObj.h
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 \***********************************************************************************/
11 #pragma once
12 
13 #include <GaudiKernel/ClassID.h>
14 #include <GaudiKernel/DataObject.h>
15 
16 #include <ostream>
17 #include <string>
18 
19 class IVersHistoryObj;
20 
31 public:
32  virtual ~HistoryObj() = default;
33 
34  const CLID& clID() const override { return classID(); }
35  static const CLID& classID();
36  static std::string convert_string( const std::string& );
37 
38  virtual std::ostream& dump( std::ostream&, bool isXML = false, int indent = 0 ) const = 0;
39 
40  // Output stream.
41  friend std::ostream& operator<<( std::ostream& lhs, const HistoryObj& rhs ) { return rhs.dump( lhs, false, 0 ); }
42 
43 protected:
44  virtual void indent( std::ostream&, int ) const;
45 };
ClassID.h
HistoryObj
Definition: HistoryObj.h:30
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
IVersHistoryObj
Definition: IVersHistoryObj.h:27
HistoryObj::dump
virtual std::ostream & dump(std::ostream &, bool isXML=false, int indent=0) const =0
HistoryObj::operator<<
friend std::ostream & operator<<(std::ostream &lhs, const HistoryObj &rhs)
Definition: HistoryObj.h:41
DataObject.h
HistoryObj::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition: HistoryObj.h:34
DataObject
Definition: DataObject.h:37
HistoryObj::~HistoryObj
virtual ~HistoryObj()=default
DataObject::classID
static const CLID & classID()
Retrieve reference to class definition structure (static access)
Definition: DataObject.cpp:69
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49