Go to the documentation of this file.
53 if ( !dpsvc ) {
return nullptr; }
70 Disabler(
IInterface* svc,
bool disable ) : m_svc( svc ), m_old( s_NAME, true ), m_enable( !disable ) {
73 }
else if ( m_enable ) {
78 if ( !property || !m_old.assign( *property ) ) {
80 }
else if ( m_old.value() != m_enable ) {
90 else if ( code().isSuccess() && m_old.value() != m_enable ) {
120 const bool disable ) {
121 if ( !dpsvc ) {
return nullptr; }
123 Disabler sentry( dpsvc, disable );
129 return sc.
isSuccess() ? result :
nullptr;
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
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
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
GAUDI_API Gaudi::Details::PropertyBase * getProperty(const IProperty *p, std::string_view name)
simple function which gets the property with given name from the component
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
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 StatusCode findObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Find object identified by its directory entry.