ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaKernel
AthenaKernel
CondContMaker.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
3
*/
4
5
#ifndef ATHENAKERNEL_CONDCONTMAKER_H
6
#define ATHENAKERNEL_CONDCONTMAKER_H 1
7
8
#include "
AthenaKernel/ICondContMaker.h
"
9
#include "
AthenaKernel/CondContFactory.h
"
10
#include "
AthenaKernel/StorableConversions.h
"
11
#include "
AthenaKernel/ClassID_traits.h
"
12
#include "GaudiKernel/DataObjID.h"
13
14
class
CondContBase
;
15
namespace
Athena
{
16
class
IRCUSvc
;
17
}
18
19
namespace
CondContainer
{
20
template
<
typename
T>
21
class
CondContMaker
:
public
ICondContMaker
{
22
public
:
23
CondContMaker
() {
24
CondContFactory::Instance
().
regMaker
(
ClassID_traits<T>::ID
() ,
this
);
25
}
26
27
virtual
28
SG::DataObjectSharedPtr<DataObject>
29
Create
(
Athena::IRCUSvc
& rcusvc,
const
CLID
& clid,
const
std::string& key)
const override
{
30
DataObjID id(clid,key);
31
32
return
SG::DataObjectSharedPtr<DataObject>
33
(
SG::asStorable
(
new
CondCont<T>
(rcusvc,
id
)));
34
}
35
};
36
}
37
38
39
#endif
40
CondContFactory.h
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
ICondContMaker.h
StorableConversions.h
convert to and from a SG storable
Athena::IRCUSvc
Interface for RCU service.
Definition
IRCUSvc.h:40
CondContBase
Base class for all conditions containers.
Definition
CondCont.h:140
CondCont
Hold mapping of ranges to condition objects.
Definition
CondCont.h:889
CondContainer::CondContFactory::regMaker
void regMaker(const CLID &clid, ICondContMaker *maker)
Definition
CondContFactory.cxx:19
CondContainer::CondContFactory::Instance
static CondContFactory & Instance()
Definition
CondContFactory.cxx:14
CondContainer::CondContMaker::CondContMaker
CondContMaker()
Definition
CondContMaker.h:23
CondContainer::CondContMaker::Create
virtual SG::DataObjectSharedPtr< DataObject > Create(Athena::IRCUSvc &rcusvc, const CLID &clid, const std::string &key) const override
Definition
CondContMaker.h:29
CondContainer::ICondContMaker
Definition
ICondContMaker.h:22
Athena
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
Definition
AthDsoUtils.h:10
CondContainer
Definition
CondContFactory.h:19
SG::DataObjectSharedPtr
CxxUtils::RefCountedPtr< T > DataObjectSharedPtr
Definition
DataObjectSharedPtr.h:27
SG::asStorable
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
Definition
DataObjectSharedPtr.h:31
ClassID_traits::ID
static constexpr CLID ID()
Definition
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:44
Generated on
for ATLAS Offline Software by
1.17.0