The Gaudi Framework
master (2e57474e)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
29
30
class
GAUDI_API
HistoryObj
:
public
DataObject
{
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
CLID
unsigned int CLID
Class ID definition.
Definition
ClassID.h:16
DataObject.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
DataObject::DataObject
DataObject()
Standard Constructor.
Definition
DataObject.cpp:23
DataObject::classID
static const CLID & classID()
Retrieve reference to class definition structure (static access).
Definition
DataObject.cpp:69
HistoryObj
Base class for History Objects.
Definition
HistoryObj.h:30
HistoryObj::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition
HistoryObj.h:34
HistoryObj::operator<<
friend std::ostream & operator<<(std::ostream &lhs, const HistoryObj &rhs)
Definition
HistoryObj.h:41
HistoryObj::dump
virtual std::ostream & dump(std::ostream &, bool isXML=false, int indent=0) const =0
HistoryObj::indent
virtual void indent(std::ostream &, int) const
Definition
HistoryObj.cpp:37
HistoryObj::~HistoryObj
virtual ~HistoryObj()=default
IVersHistoryObj
Interface for Versioned History Objects.
Definition
IVersHistoryObj.h:27
GaudiKernel
include
GaudiKernel
HistoryObj.h
Generated on
for The Gaudi Framework by
1.17.0