ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
ByteStreamCnvSvcBase
ByteStreamCnvSvcBase
ByteStreamAddressProviderSvc.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 BYTESTREAMCNVSVCBASE_BYTESTREAMADDRESSPROVIDERSVC_H
6
#define BYTESTREAMCNVSVCBASE_BYTESTREAMADDRESSPROVIDERSVC_H
7
8
#include "
AthenaKernel/IAddressProvider.h
"
9
#include "
AthenaBaseComps/AthService.h
"
10
#include "GaudiKernel/ServiceHandle.h"
11
12
#include <vector>
13
#include <string>
14
#include <map>
15
#include <set>
16
17
class
IClassIDSvc;
18
22
class
ByteStreamAddressProviderSvc
:
public
extends<AthService, IAddressProvider> {
23
24
public
:
25
ByteStreamAddressProviderSvc
(
const
std::string& name, ISvcLocator* pSvcLocator);
26
27
// Service initialize
28
virtual
StatusCode
initialize
()
override
;
29
30
// IAddressProvider interface.
31
// preload the address
32
virtual
StatusCode
preLoadAddresses
(
StoreID::type
id
, tadList& tlist)
override
;
33
35
virtual
StatusCode
updateAddress
(
StoreID::type
id
,
36
SG::TransientAddress
* tad,
37
const
EventContext& ctx)
override
;
38
39
private
:
40
// type and name of the objects to create the address for.
41
Gaudi::Property<std::vector<std::string>>
m_typeNames
{
this
,
"TypeNames"
, {},
42
"Type and Name of objects to create the address for"
,
"OrderedSet<std::string>"
};
43
44
ServiceHandle<IClassIDSvc>
m_clidSvc
;
45
46
std::map<unsigned int, std::set<std::string>>
m_clidKey
;
47
48
Gaudi::Property<int>
m_storeID
{
this
,
"StoreID"
,
StoreID::EVENT_STORE
,
"Store ID"
};
49
};
50
51
#endif
AthService.h
IAddressProvider.h
ByteStreamAddressProviderSvc::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type id, tadList &tlist) override
Definition
ByteStreamAddressProviderSvc.cxx:34
ByteStreamAddressProviderSvc::m_typeNames
Gaudi::Property< std::vector< std::string > > m_typeNames
Definition
ByteStreamAddressProviderSvc.h:41
ByteStreamAddressProviderSvc::updateAddress
virtual StatusCode updateAddress(StoreID::type id, SG::TransientAddress *tad, const EventContext &ctx) override
update an existing transient Address
Definition
ByteStreamAddressProviderSvc.cxx:59
ByteStreamAddressProviderSvc::initialize
virtual StatusCode initialize() override
Definition
ByteStreamAddressProviderSvc.cxx:20
ByteStreamAddressProviderSvc::ByteStreamAddressProviderSvc
ByteStreamAddressProviderSvc(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition
ByteStreamAddressProviderSvc.cxx:17
ByteStreamAddressProviderSvc::m_clidSvc
ServiceHandle< IClassIDSvc > m_clidSvc
Definition
ByteStreamAddressProviderSvc.h:44
ByteStreamAddressProviderSvc::m_clidKey
std::map< unsigned int, std::set< std::string > > m_clidKey
Definition
ByteStreamAddressProviderSvc.h:46
ByteStreamAddressProviderSvc::m_storeID
Gaudi::Property< int > m_storeID
Definition
ByteStreamAddressProviderSvc.h:48
SG::TransientAddress
Definition
TransientAddress.h:34
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreID::type
type
Definition
StoreID.h:24
StoreID::EVENT_STORE
@ EVENT_STORE
Definition
StoreID.h:26
Generated on
for ATLAS Offline Software by
1.17.0