2 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 31 constexpr
struct NoCaseCmp_t {
43 inline bool operator()(
const PropertyBase* p )
const {
return p && noCaseCmp( p->
name(), m_name ); }
73 return ( it != props.
end() ) ? *it :
nullptr;
87 if ( !noCaseCmp( it.first, name ) ) {
107 if ( pp && pp->
assign( p ) ) {
215 log <<
MSG::WARNING <<
"duplicated property name '" << name <<
"', see https://its.cern.ch/jira/browse/GAUDI-1023" 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
Definition of the MsgStream class used to transmit messages.
virtual bool load(PropertyBase &dest) const =0
export the property value to the destination
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
const std::string name() const
property name
bool isSuccess() const
Test for a status code of SUCCESS.
Gaudi::Details::PropertyBase * property(const std::string &name) const
Gaudi::Details::PropertyBase * declareRemoteProperty(const std::string &name, IProperty *rsvc, const std::string &rname="")
Declare a remote property.
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
void assertUniqueName(const std::string &name) const
Throw an exception if the name is already present in the list of properties (see GAUDI-1023).
virtual std::string toString() const =0
value -> string
bool isFailure() const
Test for a status code of FAILURE.
virtual StatusCode fromString(const std::string &value)=0
string -> value
auto begin(reverse_wrapper< T > &w)
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
GAUDI_API ISvcLocator * svcLocator()
class GAUDI_API[[deprecated("will be removed in v28r1, consider using PropertyHolder instead")]] PropertyMgr
bool hasProperty(const std::string &name) const override
Return true if we have a property with the given name.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
The IMessage is the interface implemented by the message service.
auto end(reverse_wrapper< T > &w)
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
virtual const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const =0
Get list of properties.
Properties m_properties
Collection of all declared properties.
StatusCode queryInterface(const InterfaceID &iid, void **pinterface) override
The IProperty is the basic interface for all components which have properties that can be set or get...
const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const override
get all properties
void toupper(std::string &s)
IInterface * m_pOuter
Interface hub reference (ApplicationMgr)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual const std::string & name() const =0
Retrieve the name of the instance.
RemoteProperties m_remoteProperties
Collection of all declared remote properties.
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 queryInterface(const InterfaceID &ti, void **pp)=0
Set the void** to the pointer to the requested interface of the instance.