The Gaudi Framework
master (2e57474e)
Toggle main menu visibility
Loading...
Searching...
No Matches
ServiceHistory.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/HistoryObj.h
>
14
#include <
GaudiKernel/IVersHistoryObj.h
>
15
16
#include <string>
17
#include <vector>
18
19
class
IService
;
20
class
JobHistory
;
21
29
30
class
GAUDI_API
ServiceHistory
:
public
HistoryObj
,
public
IVersHistoryObj
{
31
32
public
:
33
ServiceHistory
();
34
ServiceHistory
(
const
IService
*,
const
JobHistory
* );
35
ServiceHistory
(
const
IService
&,
const
JobHistory
* );
36
37
// Class IDs
38
const
CLID
&
clID
()
const override
{
return
classID
(); }
39
static
const
CLID
&
classID
();
40
41
// Return the service properties.
42
const
PropertyList
&
properties
()
const override
{
return
m_properties
; }
43
44
const
IService
*
service
()
const
{
return
m_pService
; }
45
46
const
JobHistory
*
jobHistory
()
const
{
return
m_jobHistory
; }
47
48
std::ostream&
dump
( std::ostream&,
const
bool
isXML,
int
indent )
const override
;
49
50
const
std::string&
name
()
const override
{
return
m_name
; }
51
const
std::string&
type
()
const override
{
return
m_type
; }
52
const
std::string&
version
()
const override
{
return
m_version
; }
53
54
// Output stream.
55
friend
std::ostream&
operator<<
( std::ostream& lhs,
const
ServiceHistory
& rhs ) {
return
rhs.
dump
( lhs,
false
, 0 ); }
56
57
private
:
58
const
IService
*
m_pService
;
59
const
JobHistory
*
m_jobHistory
{
nullptr
};
60
std::string
m_name
,
m_type
,
m_version
;
61
PropertyList
m_properties
;
62
};
CLID
unsigned int CLID
Class ID definition.
Definition
ClassID.h:16
HistoryObj.h
IVersHistoryObj.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
HistoryObj
Base class for History Objects.
Definition
HistoryObj.h:30
HistoryObj::dump
virtual std::ostream & dump(std::ostream &, bool isXML=false, int indent=0) const =0
HistoryObj::classID
static const CLID & classID()
Definition
HistoryObj.cpp:44
IService
General service interface definition.
Definition
IService.h:26
IVersHistoryObj
Interface for Versioned History Objects.
Definition
IVersHistoryObj.h:27
IVersHistoryObj::PropertyList
std::vector< Gaudi::Details::PropertyBase * > PropertyList
Definition
IVersHistoryObj.h:29
JobHistory
JobHistory class definition.
Definition
JobHistory.h:32
ServiceHistory::m_type
std::string m_type
Definition
ServiceHistory.h:60
ServiceHistory::type
const std::string & type() const override
Definition
ServiceHistory.h:51
ServiceHistory::m_properties
PropertyList m_properties
Definition
ServiceHistory.h:61
ServiceHistory::operator<<
friend std::ostream & operator<<(std::ostream &lhs, const ServiceHistory &rhs)
Definition
ServiceHistory.h:55
ServiceHistory::properties
const PropertyList & properties() const override
Definition
ServiceHistory.h:42
ServiceHistory::m_jobHistory
const JobHistory * m_jobHistory
Definition
ServiceHistory.h:59
ServiceHistory::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition
ServiceHistory.h:38
ServiceHistory::jobHistory
const JobHistory * jobHistory() const
Definition
ServiceHistory.h:46
ServiceHistory::m_name
std::string m_name
Definition
ServiceHistory.h:60
ServiceHistory::name
const std::string & name() const override
Definition
ServiceHistory.h:50
ServiceHistory::m_version
std::string m_version
Definition
ServiceHistory.h:60
ServiceHistory::dump
std::ostream & dump(std::ostream &, const bool isXML, int indent) const override
Definition
ServiceHistory.cpp:48
ServiceHistory::m_pService
const IService * m_pService
Definition
ServiceHistory.h:58
ServiceHistory::version
const std::string & version() const override
Definition
ServiceHistory.h:52
ServiceHistory::ServiceHistory
ServiceHistory()
Definition
ServiceHistory.cpp:20
ServiceHistory::service
const IService * service() const
Definition
ServiceHistory.h:44
GaudiKernel
include
GaudiKernel
ServiceHistory.h
Generated on
for The Gaudi Framework by
1.17.0