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 ) {
68 if ( !property || !m_old.assign( *property ) ) {
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...
constexpr static const auto SUCCESS
Data provider interface definition.
virtual StatusCode findObject(IRegistry *pDirectory, std::string_view 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
const StatusCode & ignore() const
Ignore/check StatusCode.
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
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