2 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 31 constexpr
struct NoCaseCmp_t {
35 [](
char c1,
char c2 ) {
return toupper( c1 ) ==
toupper( c2 ); } );
59 if ( !rsvc )
return nullptr;
110 return ( it != props.
end() ) ? *it :
nullptr;
122 if ( !noCaseCmp( it.first, name ) )
continue;
236 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
constexpr static const auto FAILURE
Definition of the MsgStream class used to transmit messages.
void setDocumentation(std::string value)
set the documentation string
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
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
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
virtual StatusCode fromString(const std::string &value)=0
string -> value
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
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 v29r0, 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.
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, TYPE &value, const std::string &doc="none")
Declare a property (templated)
Definition of the basic interface.
The IMessage is the interface implemented by the message service.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
constexpr static const auto SUCCESS
virtual const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const =0
Get list of properties.
Base class of array's of various gaudihandles.
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Properties m_properties
Collection of all declared properties.
std::vector< std::unique_ptr< Gaudi::Details::PropertyBase > > m_todelete
Properties to be deleted.
Base class to handles to be used in lieu of naked pointers to various Gaudi components.
AttribStringParser::Iterator begin(const AttribStringParser &parser)
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.
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.