65 Disabler(
IInterface* svc,
bool disable ) : m_svc( svc ), m_old( s_NAME,
true ), m_enable( !disable )
69 }
else if ( m_enable ) {
76 }
else if ( m_old.value() != m_enable ) {
87 else if ( code().isSuccess() && m_old.value() != m_enable ) {
123 Disabler sentry( dpsvc, disable );
129 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
bool isSuccess() const
Test for a status code of SUCCESS.
Gaudi::Details::PropertyBase * property(const std::string &name) const
Data provider interface definition.
virtual StatusCode findObject(IRegistry *pDirectory, const std::string &path, DataObject *&pObject)=0
Find object identified by its directory entry.
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".
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
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
virtual StatusCode retrieveObject(IRegistry *pDirectory, const std::string &path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.