DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
More...
#include <GaudiKernel/DataObjectHandleBase.h>
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Base class for handles to Data Objects in the Event Store, to simplify access via Properties.
- Author
- Charles Leggett
- Date
- 2015-09-01
Definition at line 24 of file DataObjectHandleBase.h.
Definition at line 54 of file DataObjectHandleBase.cpp.
DataObjectHandleBase(const DataObjID &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *owner)
DataObjectHandleBase::~DataObjectHandleBase |
( |
| ) |
|
|
virtual |
Definition at line 61 of file DataObjectHandleBase.cpp.
virtual void renounce(Gaudi::DataHandle &)=0
virtual IDataHandleHolder * owner() const
Definition at line 18 of file DataObjectHandleBase.cpp.
virtual void declare(Gaudi::DataHandle &)=0
SmartIF< IDataProviderSvc > m_EDS
bool m_searchDone
Whether the search part of the fetch method (so dealing with alt names was already executed or not...
IDataHandleHolder * m_owner
SmartIF< IMessageSvc > m_MS
DataObject * DataObjectHandleBase::fetch |
( |
| ) |
const |
|
protected |
Definition at line 66 of file DataObjectHandleBase.cpp.
79 <<
"DataObjectHandle: uninitialized data handle" <<
std::endl;
96 auto tokens = boost::tokenizer<boost::char_separator<char>>{
objKey(),boost::char_separator<char>{
":"}};
102 if (alt!=tokens.end()) {
105 <<
"\" -- using alternative source: \"" << *alt <<
"\" instead" Definition of the MsgStream class used to transmit messages.
virtual const std::string & objKey() const
bool isSuccess() const
Test for a status code of SUCCESS.
SmartIF< IDataProviderSvc > m_EDS
virtual void setKey(const DataObjID &key) const
bool m_searchDone
Whether the search part of the fetch method (so dealing with alt names was already executed or not...
This class is used for returning status codes from appropriate routines.
std::mutex m_searchMutex
A Mutex protecting the calls to the search part of the fetch method, so that we are sure that we only...
SmartIF< IMessageSvc > m_MS
A DataObject is the base class of any identifiable object on any data store.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual const std::string & name() const =0
Retrieve the name of the instance.
virtual IDataHandleHolder * owner() const
virtual StatusCode retrieveObject(IRegistry *pDirectory, const std::string &path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
void DataObjectHandleBase::fromString |
( |
const std::string & |
s | ) |
|
Definition at line 132 of file DataObjectHandleBase.cpp.
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
bool DataObjectHandleBase::init |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from Gaudi::DataHandle.
Definition at line 139 of file DataObjectHandleBase.cpp.
143 if (!
owner())
return false;
void setWritten(bool wasWritten=true)
Define general base for Gaudi exception.
SmartIF< IDataProviderSvc > m_EDS
void setRead(bool wasRead=true)
Base class from which all concrete algorithm classes should be derived.
SmartIF< IDataProviderSvc > & evtSvc() const
shortcut for method eventSvc
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
SmartIF< IMessageSvc > m_MS
virtual IDataHandleHolder * owner() const
bool DataObjectHandleBase::initialized |
( |
| ) |
const |
|
inline |
bool DataObjectHandleBase::isOptional |
( |
| ) |
const |
|
inline |
bool DataObjectHandleBase::isValid |
( |
| ) |
const |
Definition at line 29 of file DataObjectHandleBase.cpp.
SmartIF< IDataProviderSvc > m_EDS
bool m_searchDone
Whether the search part of the fetch method (so dealing with alt names was already executed or not...
PropertyMgr & operator=(const PropertyMgr &)=delete
std::mutex m_searchMutex
A Mutex protecting the calls to the search part of the fetch method, so that we are sure that we only...
SmartIF< IMessageSvc > m_MS
void DataObjectHandleBase::setOptional |
( |
bool |
optional = true | ) |
|
|
inline |
void DataObjectHandleBase::setRead |
( |
bool |
wasRead = true | ) |
|
|
inlineprotected |
void DataObjectHandleBase::setWritten |
( |
bool |
wasWritten = true | ) |
|
|
inlineprotected |
bool DataObjectHandleBase::wasRead |
( |
| ) |
const |
|
inline |
bool DataObjectHandleBase::wasWritten |
( |
| ) |
const |
|
inline |
Definition at line 179 of file DataObjectHandleBase.cpp.
virtual Mode mode() const
virtual const DataObjID & fullKey() const
bool isOptional() const
Check if the data object declared is optional for the algorithm.
virtual const std::string & name() const =0
Retrieve the name of the instance.
virtual IDataHandleHolder * owner() const
bool DataObjectHandleBase::m_init = false |
|
protected |
bool DataObjectHandleBase::m_optional = false |
|
protected |
bool DataObjectHandleBase::m_searchDone = false |
|
mutableprotected |
Whether the search part of the fetch method (so dealing with alt names was already executed or not.
On subsequent calls (when this is true), it will be skipped.
Definition at line 78 of file DataObjectHandleBase.h.
A Mutex protecting the calls to the search part of the fetch method, so that we are sure that we only call it once.
Definition at line 84 of file DataObjectHandleBase.h.
bool DataObjectHandleBase::m_wasRead = false |
|
protected |
bool DataObjectHandleBase::m_wasWritten = false |
|
protected |
The documentation for this class was generated from the following files: