![]() |
The Gaudi Framework
v36r7 (7f57a304)
|
#include <GaudiKernel/PropertyList.h>
Public Member Functions | |
PropertyList () | |
Constructor. More... | |
PropertyList (const std::string &name) | |
Constructor giving a name. More... | |
virtual | ~PropertyList () |
Virtual destructor. More... | |
bool | isRef () const |
Accessor members (const) More... | |
void | addProperty (const std::string &name, Property &p) |
Add a property to the list. More... | |
void | addProperty (Property &p) |
Add a property to the list. More... | |
void | removeProperty (const std::string &name) |
Remove a property from the list. More... | |
void | removeProperty (Property &p) |
Remove a property from the list. More... | |
bool | assign (const Property &p) override |
Property implementation: set property. More... | |
bool | load (Property &p) const override |
Property implementation: get property. More... | |
bool | assign (const std::string &name, const Property &p) |
Property implementation: set property. More... | |
bool | load (const std::string &name, Property &p) const |
Property implementation: get property. More... | |
const Property & | getProperty (std::string_view name) const |
Get the property with a given name. More... | |
const std::vector< Property * > & | getProperties () const |
Get the complete list of properties. More... | |
![]() | |
const std::string | name () const |
property name More... | |
std::string | documentation () const |
property documentation More... | |
std::string | semantics () const |
property semantics More... | |
const std::type_info * | type_info () const |
property type-info More... | |
std::string | type () const |
property type More... | |
virtual std::string | toString () const =0 |
value -> string More... | |
virtual void | toStream (std::ostream &out) const =0 |
value -> stream More... | |
virtual StatusCode | fromString (const std::string &value)=0 |
string -> value More... | |
virtual PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun)=0 |
set new callback for reading More... | |
virtual PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun)=0 |
set new callback for update More... | |
virtual const std::function< void(PropertyBase &)> | readCallBack () const =0 |
get a reference to the readCallBack More... | |
virtual const std::function< void(PropertyBase &)> | updateCallBack () const =0 |
get a reference to the updateCallBack More... | |
virtual bool | useUpdateHandler ()=0 |
manual trigger for callback for update More... | |
template<class HT > | |
PropertyBase & | declareReadHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
template<class HT > | |
PropertyBase & | declareUpdateHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
virtual | ~PropertyBase () |
virtual destructor More... | |
void | setName (std::string value) |
set the new value for the property name More... | |
void | setDocumentation (std::string value) |
set the documentation string More... | |
void | setSemantics (std::string value) |
set the semantics string More... | |
virtual std::ostream & | fillStream (std::ostream &) const |
the printout of the property value More... | |
virtual PropertyBase * | clone () const =0 |
clones the current property More... | |
void | setOwnerType (const std::type_info &ownerType) |
set the type of the owner class (used for documentation) More... | |
template<class OWNER > | |
void | setOwnerType () |
set the type of the owner class (used for documentation) More... | |
const std::type_info * | ownerType () const |
get the type of the owner class (used for documentation) More... | |
std::string | ownerTypeName () const |
get the string for the type of the owner class (used for documentation) More... | |
Private Attributes | |
std::vector< Property * > | m_propertyList |
Additional Inherited Members | |
![]() | |
PropertyBase (const std::type_info &type, std::string name="", std::string doc="", std::string semantics="") | |
constructor from the property name and the type More... | |
PropertyBase (std::string name, const std::type_info &type) | |
constructor from the property name and the type More... | |
PropertyBase (const PropertyBase &)=default | |
copy constructor More... | |
PropertyBase & | operator= (const PropertyBase &)=default |
assignment operator More... | |
List of properties.
Definition at line 26 of file PropertyList.h.
PropertyList::PropertyList | ( | ) |
Constructor.
PropertyList::PropertyList | ( | const std::string & | name | ) |
Constructor giving a name.
|
virtual |
Virtual destructor.
void PropertyList::addProperty | ( | const std::string & | name, |
Property & | p | ||
) |
Add a property to the list.
void PropertyList::addProperty | ( | Property & | p | ) |
Add a property to the list.
|
overridevirtual |
Property implementation: set property.
Implements Gaudi::Details::PropertyBase.
bool PropertyList::assign | ( | const std::string & | name, |
const Property & | p | ||
) |
Property implementation: set property.
const std::vector<Property*>& PropertyList::getProperties | ( | ) | const |
Get the complete list of properties.
const Property& PropertyList::getProperty | ( | std::string_view | name | ) | const |
Get the property with a given name.
|
inline |
bool PropertyList::load | ( | const std::string & | name, |
Property & | p | ||
) | const |
Property implementation: get property.
|
overridevirtual |
Property implementation: get property.
Implements Gaudi::Details::PropertyBase.
void PropertyList::removeProperty | ( | const std::string & | name | ) |
Remove a property from the list.
void PropertyList::removeProperty | ( | Property & | p | ) |
Remove a property from the list.
|
private |
Definition at line 63 of file PropertyList.h.