|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/MsgStream.h"
11 #include "GaudiKernel/ISvcLocator.h"
40 return StatusCode::SUCCESS;
66 std::vector<const SG::DataProxy*>
97 const std::string&
key,
160 const std::string&
str,
168 static const InterfaceID IDActiveStoreSvc(
"ActiveStoreSvc", 1, 0);
169 return IDActiveStoreSvc;
176 else if ( IProxyDict::interfaceID().versionMatch(riid) ) {
181 return Service::queryInterface(riid, ppvInterface);
184 return StatusCode::SUCCESS;
StoreGateSvc * activeStore() const
returns pointer to the active store as StoreGateSvc
virtual ~ActiveStoreSvc() override
Standard Destructor.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface) override
virtual SG::DataProxy * proxy_exact(SG::sgkey_t sgkey) const override
Get proxy given a hashed key+clid.
ActiveStoreSvc(const std::string &name, ISvcLocator *svc)
Standard Service Constructor. sets active store to default event store.
A service that caches a pointer to the currently active store. It also implements the IProxyDict stor...
virtual std::vector< const SG::DataProxy * > proxies() const override
return the list of all current proxies in store
SG::sgkey_t sgkey_t
Type of the keys.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual const std::string * keyToString(sgkey_t key) const override
Find the string corresponding to a given key.
static StoreGateSvc * currentStoreGate()
get current StoreGate
#define CHECK(...)
Evaluate an expression and check for errors.
AthROOTErrorHandlerSvc * svc
uint32_t CLID
The Class ID type.
virtual StatusCode initialize() override
Service initialization.
StoreGateSvc * activeStoreOOL() const
Helpers for checking error return status codes and reporting errors.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
virtual sgkey_t stringToKey(const std::string &str, CLID clid) override
Find the key for a string/CLID pair.
virtual void registerKey(sgkey_t key, const std::string &str, CLID clid) override
Remember an additional mapping from key to string/CLID.
void setStore(StoreGateSvc *s)
set the active store pointer: used by the event loop mgrs
Smart pointer to manage DataObject reference counts.
static const InterfaceID & interfaceID()
not really kosher: should be in IActiveStoreSvc
static const std::string & storeName(const StoreID::type &s)
virtual SG::DataProxy * recordObject(SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override
Record an object in the store.
StatusCode addToStore(CLID id, SG::DataProxy *proxy) override
Raw addition of a proxy to the store.
virtual SG::DataProxy * proxy(const void *const pTransient) const override
get proxy for a given data object address in memory