  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
    9 #include "GaudiKernel/MsgStream.h" 
   10 #include "GaudiKernel/ISvcLocator.h" 
   23   SmartIF<StoreGateSvc> 
storeGate{service(m_storeName, 
true)};
 
   27   return StatusCode::SUCCESS;
 
   38   return activeStore()->proxy(pTransient);
 
   44   return activeStore()->proxy(
id,
key);
 
   49   return activeStore()->proxy_exact (
sgkey);
 
   53 std::vector<const SG::DataProxy*>
 
   55   return activeStore()->proxies();
 
   62   return activeStore()->addToStore (
id, 
proxy);
 
   84                               const std::string& 
key,
 
   88   return activeStore()->recordObject (
obj, 
key, allowMods, returnExisting);
 
  102   return activeStore()->stringToKey (
str, clid);
 
  115   return activeStore()->keyToString (
key);
 
  130   return activeStore()->keyToString (
key, clid);
 
  147                                   const std::string& 
str,
 
  150   return activeStore()->registerKey (
key, 
str, clid);
 
  
virtual SG::DataProxy * proxy_exact(SG::sgkey_t sgkey) const override
Get proxy given a hashed key+clid.
 
virtual std::vector< const SG::DataProxy * > proxies() const override
return the list of all current proxies in store
 
Simple smart pointer for Gaudi-style refcounted objects.
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
static StoreGateSvc * currentStoreGate()
get current StoreGate
 
#define CHECK(...)
Evaluate an expression and check for errors.
 
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 const std::string * keyToString(sgkey_t key) const override
Find the string corresponding to a given key.
 
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
 
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