The Gaudi Framework  master (37c0b60a)
HistoryObj.h
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 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_HISTORYOBJ_H
12 #define GAUDIKERNEL_HISTORYOBJ_H
13 
14 #include <GaudiKernel/ClassID.h>
15 #include <GaudiKernel/DataObject.h>
16 
17 #include <ostream>
18 #include <string>
19 
20 class IVersHistoryObj;
21 
32 public:
33  virtual ~HistoryObj() = default;
34 
35  const CLID& clID() const override { return classID(); }
36  static const CLID& classID();
37  static std::string convert_string( const std::string& );
38 
39  virtual std::ostream& dump( std::ostream&, bool isXML = false, int indent = 0 ) const = 0;
40 
41  // Output stream.
42  friend std::ostream& operator<<( std::ostream& lhs, const HistoryObj& rhs ) { return rhs.dump( lhs, false, 0 ); }
43 
44 protected:
45  virtual void indent( std::ostream&, int ) const;
46 };
47 
48 #endif
std::string
STL class.
ClassID.h
HistoryObj
Definition: HistoryObj.h:31
std::ostream
STL class.
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
IVersHistoryObj
Definition: IVersHistoryObj.h:28
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:42
DataObject.h
HistoryObj::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition: HistoryObj.h:35
DataObject
Definition: DataObject.h:36
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:81