43 const std::string&
path )
46 if ( 0 == dpsvc ) {
return 0 ; }
59 const std::string s_NAME =
"EnableFaultHandler" ;
69 , m_old ( s_NAME , true )
70 , m_enable ( !disable )
74 else if ( m_enable ) { ; }
79 if ( 0 == property || !m_old.assign ( *property ) )
81 else if ( m_old.value() != m_enable )
84 ( m_svc.get() , s_NAME , m_enable ) ;
93 else if ( code().isSuccess() && m_old.value() != m_enable ) {
101 m_code = Gaudi::Utils::setProperty<bool>(m_svc.get(), s_NAME, m_old);
135 const std::string& path ,
136 const bool retrieve ,
139 if ( 0 == dpsvc ) {
return 0 ; }
141 Disabler sentry ( dpsvc , disable ) ;
147 dpsvc -> retrieveObject ( path , result ) :
148 dpsvc -> findObject ( path , result ) ;
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
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...
GAUDI_API Property * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component
Data provider interface definition.
bool isFailure() const
Test for a status code of FAILURE.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
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
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
Property base class allowing Property* collections to be "homogeneous".
A DataObject is the base class of any identifiable object on any data store.