43 if ( !dpsvc ) {
return nullptr; }
60 Disabler(
IInterface* svc,
bool disable ) : m_svc( svc ), m_old( s_NAME,
true ), m_enable( !disable ) {
63 }
else if ( m_enable ) {
70 }
else if ( m_old.value() != m_enable ) {
80 else if ( code().isSuccess() && m_old.value() != m_enable ) {
110 const bool disable ) {
111 if ( !dpsvc ) {
return nullptr; }
113 Disabler sentry( dpsvc, disable );
119 return sc.
isSuccess() ? result :
nullptr;
StatusCode setProperty(IProperty *component, const std::string &name, const TYPE &value, const std::string &doc)
simple function to set the property of the given object from the value
Implementation of property with value of concrete type.
static GAUDI_API DataObject * findobject(IDataProviderSvc *dpsvc, const std::string &path)
simple wrapper for IDataProviderSvc::findObject The methdod does NOT trigger the loading the object f...
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
virtual StatusCode findObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Find object identified by its directory entry.
Gaudi::Details::PropertyBase * property(const std::string &name) const
constexpr static const auto SUCCESS
Data provider interface definition.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
virtual StatusCode retrieveObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
static GAUDI_API DataObject * getobject(IDataProviderSvc *dpsvc, const std::string &path, const bool retrieve=true, const bool disableDoD=false)
the generic function to get object from TES
const StatusCode & ignore() const
Ignore/check StatusCode.
constexpr static const auto FAILURE
A DataObject is the base class of any identifiable object on any data store.
GAUDI_API Gaudi::Details::PropertyBase * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component