The Gaudi Framework
master (37c0b60a)
DataIncident.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 GAUDI_DATAINCIDENT_H
12
#define GAUDI_DATAINCIDENT_H
13
14
// Include files
15
#include <
GaudiKernel/Incident.h
>
16
25
template
<
class
T>
26
class
GAUDI_API
ContextIncident
:
public
Incident
{
27
T
m_tag
;
28
29
public
:
31
37
ContextIncident
(
std::string
src,
std::string
typ, T tag )
38
:
Incident
(
std
::move( src ),
std
::move( typ ) ), m_tag(
std
::move( tag ) ) {}
39
41
const
T&
tag
()
const
{
return
m_tag; }
42
};
43
45
typedef
ContextIncident<std::string>
DataIncident
;
46
47
#endif // GAUDI_DATAINCIDENT_H
ContextIncident::ContextIncident
ContextIncident(std::string src, std::string typ, T tag)
Initializing Constructor.
Definition:
DataIncident.h:37
std::string
STL class.
ContextIncident
Definition:
DataIncident.h:26
ContextIncident::m_tag
T m_tag
Definition:
DataIncident.h:27
ContextIncident::tag
const T & tag() const
Accesssor to the tag value (CONST)
Definition:
DataIncident.h:41
DataIncident
ContextIncident< std::string > DataIncident
Specific incident type used by the data-on-demand-service.
Definition:
DataIncident.h:45
std
STL namespace.
Incident.h
Incident
Definition:
Incident.h:27
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:81
GaudiKernel
include
GaudiKernel
DataIncident.h
Generated on Thu Dec 19 2024 15:35:01 for The Gaudi Framework by
1.8.18