81 requires( !std::is_base_of_v<Gaudi::Details::PropertyBase, TYPE> )
96 virtual const std::vector<Gaudi::Details::PropertyBase*>&
getProperties()
const = 0;
implementation of various functions for streaming.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
const std::string name() const
property name
Definition of the basic interface.
The IProperty is the basic interface for all components which have properties that can be set or get.
DeclareInterfaceID(IProperty, 3, 0)
InterfaceID.
virtual StatusCode setProperty(const std::string &name, const Gaudi::Details::PropertyBase &p)=0
Set the property from a property with a different name.
StatusCode setProperty(const std::string &name, const TYPE &value)
set the property form the value
virtual const Gaudi::Details::PropertyBase & getProperty(std::string_view name) const =0
Get the property by name.
virtual StatusCode setProperty(const std::string &s)=0
Set the property by string.
virtual StatusCode setPropertyRepr(const std::string &n, const std::string &r)=0
Set the property by name and value representation.
virtual bool hasProperty(std::string_view name) const =0
Return true if we have a property with the given name.
virtual StatusCode getProperty(std::string_view n, std::string &v) const =0
Get the property by std::string.
StatusCode setProperty(const std::string &name, const char *v)
Special case for string literals.
StatusCode setProperty(const std::string &name, const std::string &v)
Special case for std::string.
virtual const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const =0
Get list of properties.
virtual StatusCode getProperty(Gaudi::Details::PropertyBase *p) const =0
Get the property by property.
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.
This class is used for returning status codes from appropriate routines.
constexpr static const auto FAILURE
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string