![]() |
ATLAS Offline Software
|
This class provides the interface for MetaDataSvc. More...
#include <IAthMetaDataSvc.h>
Public Member Functions | |
DeclareInterfaceID (IAthMetaDataSvc, 1, 0) | |
virtual StatusCode | shmProxy (const std::string &filename)=0 |
used by AthenaPoolCnvSvc More... | |
virtual std::set< std::string > | getPerStreamKeysFor (const std::string &key) const |
Get all per-stream Key variants created for in-file metadata object with original key - if none, return key. More... | |
template<typename T , class TKEY > | |
T * | tryRetrieve (const TKEY &key) const |
Retrieve an object of type T from MetaDataStore Return 0 if not found. More... | |
template<typename T , class TKEY > | |
const T * | tryConstRetrieve (const TKEY &key) const |
template<typename T , typename TKEY > | |
StatusCode | record (T *p2BRegistered, const TKEY &key) |
Record an object with a key. More... | |
template<typename T , typename TKEY > | |
StatusCode | record (std::unique_ptr< T > pUnique, const TKEY &key) |
Record an object with a key, take ownership of the unique_ptr obj. More... | |
template<typename T , typename TKEY > | |
StatusCode | remove (const TKEY &key, bool ignoreIfAbsent=false) |
Remove object with this type+key. More... | |
template<typename T , typename TKEY > | |
bool | contains (const TKEY &key) |
Check if object is already is already in store. More... | |
virtual StoreGateSvc * | outputDataStore () const =0 |
The output MetaData Store. More... | |
virtual const std::string | currentRangeID () const =0 |
rangeID for the current EventContext - used to index MetaContainers - More... | |
virtual void | recordHook (const std::type_info &) |
Hook for implementation to react to recording an object. More... | |
virtual void | removeHook (const std::type_info &) |
Hook for implementation to react to removing an object. More... | |
Private Attributes | |
std::mutex | m_mutex |
This class provides the interface for MetaDataSvc.
Note that Gaudi has an IMetaDataSvc, so we don't want to use that name.
Definition at line 28 of file IAthMetaDataSvc.h.
bool IAthMetaDataSvc::contains | ( | const TKEY & | key | ) |
|
pure virtual |
rangeID for the current EventContext - used to index MetaContainers -
IAthMetaDataSvc::DeclareInterfaceID | ( | IAthMetaDataSvc | , |
1 | , | ||
0 | |||
) |
|
inlinevirtual |
Get all per-stream Key variants created for in-file metadata object with original key - if none, return key.
default implementation that maps a key to itself - overwritten in MetaDataSvc
Definition at line 82 of file IAthMetaDataSvc.h.
|
pure virtual |
The output MetaData Store.
StatusCode IAthMetaDataSvc::record | ( | std::unique_ptr< T > | pUnique, |
const TKEY & | key | ||
) |
Record an object with a key, take ownership of the unique_ptr obj.
Definition at line 130 of file IAthMetaDataSvc.h.
StatusCode IAthMetaDataSvc::record | ( | T * | p2BRegistered, |
const TKEY & | key | ||
) |
|
inlinevirtual |
Hook for implementation to react to recording an object.
Definition at line 70 of file IAthMetaDataSvc.h.
StatusCode IAthMetaDataSvc::remove | ( | const TKEY & | key, |
bool | ignoreIfAbsent = false |
||
) |
|
inlinevirtual |
Hook for implementation to react to removing an object.
Definition at line 73 of file IAthMetaDataSvc.h.
|
pure virtual |
used by AthenaPoolCnvSvc
const T * IAthMetaDataSvc::tryConstRetrieve | ( | const TKEY & | key | ) | const |
Definition at line 102 of file IAthMetaDataSvc.h.
T * IAthMetaDataSvc::tryRetrieve | ( | const TKEY & | key | ) | const |
Retrieve an object of type T
from MetaDataStore Return 0 if not found.
Don't print any WARNINGs
key | The key to use for the lookup. |
Definition at line 92 of file IAthMetaDataSvc.h.
|
private |
Definition at line 76 of file IAthMetaDataSvc.h.