ATLAS Offline Software
Loading...
Searching...
No Matches
IProxyRegistry.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef ATHENAKERNEL_IPROXYREGISTRY_H
12# define ATHENAKERNEL_IPROXYREGISTRY_H
13
14//<<<<<< INCLUDES >>>>>>
15#include "GaudiKernel/StatusCode.h"
16#include "GaudiKernel/ClassID.h"
18#include "SGCore/sgkey_t.h"
19#include <string>
20
21//<<<<<< CLASS FORWARD DECLARATIONS >>>>>>
22namespace SG {
23 class DataProxy;
24 class TransientAddress;
25}
26
28public:
30 virtual StatusCode addToStore(const CLID& id, SG::DataProxy* proxy) = 0;
31
32 virtual StatusCode addAlias(const std::string& key, SG::DataProxy* proxy) = 0;
33
34 virtual StoreID::type storeID() const = 0; //FIXME this should not be here
35
37 virtual SG::DataProxy* proxy(const SG::TransientAddress* tAD) const = 0;
38
40 virtual SG::DataProxy* proxy(const CLID& id, const std::string& key) const=0;
41
44 virtual SG::DataProxy* proxy_exact(const CLID& id,
45 const std::string& key) const = 0;
46
49 virtual SG::DataProxy* proxy_exact (SG::sgkey_t sgkey) const = 0;
50
51 virtual ~IProxyRegistry() {}
52};
53#endif // ATHENAKERNEL_IPROXYREGISTRY_H
uint32_t CLID
The Class ID type.
a proxy registry (a read/write dictionary)
virtual SG::DataProxy * proxy(const CLID &id, const std::string &key) const =0
get proxy with given id. Returns 0 to flag failure
virtual StoreID::type storeID() const =0
virtual StatusCode addToStore(const CLID &id, SG::DataProxy *proxy)=0
add proxy to store.
virtual SG::DataProxy * proxy_exact(SG::sgkey_t sgkey) const =0
get proxy with given key.
virtual ~IProxyRegistry()
virtual SG::DataProxy * proxy_exact(const CLID &id, const std::string &key) const =0
get proxy with given id.
virtual SG::DataProxy * proxy(const SG::TransientAddress *tAD) const =0
locate a proxy for a given TransientAddress
virtual StatusCode addAlias(const std::string &key, SG::DataProxy *proxy)=0
Forward declaration.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Definition sgkey_t.h:32