Go to the documentation of this file.
21 #include <string_view>
51 return setPropertyRepr(
name,
v );
81 template <
class TYPE,
typename = std::enable_if_t<!std::is_base_of_v<Gaudi::Details::PropertyBase, TYPE>>>
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
const std::string name() const
property name
virtual const Gaudi::Details::PropertyBase & getProperty(std::string_view name) const =0
Get the property by name.
StatusCode setProperty(const std::string &name, const char *v)
Special case for string literals.
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.
virtual StatusCode setProperty(const std::string &s)=0
Set the property by string.
virtual StatusCode getProperty(Gaudi::Details::PropertyBase *p) const =0
Get the property by property.
StatusCode setProperty(const std::string &name, const TYPE &value)
set the property form the value
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.
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
virtual const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const =0
Get list of properties.
StatusCode setProperty(const std::string &name, const std::string &v)
Special case for std::string.
constexpr static const auto FAILURE
GAUDI_API bool hasProperty(const IProperty *p, std::string_view name)
simple function which check the existence of the property with the given name.
virtual StatusCode setPropertyRepr(const std::string &n, const std::string &r)=0
Set the property by name and value representation.
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.