![]() |
The Gaudi Framework
v27r1
|
List of properties. More...
#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) |
Property implementation: set property. More... | |
bool | load (Property &p) const |
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 (const std::string &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... | |
const std::string & | documentation () const |
property documentation 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... | |
const std::function< void(Property &)> & | readCallBack () const |
get a reference to the readCallBack More... | |
const std::function< void(Property &)> & | updateCallBack () const |
get a reference to the updateCallBack More... | |
virtual Property & | declareReadHandler (std::function< void(Property &)> fun) |
set new callback for reading More... | |
virtual Property & | declareUpdateHandler (std::function< void(Property &)> fun) |
set new callback for update More... | |
template<class HT > | |
Property & | declareReadHandler (void(HT::*MF)(Property &), HT *instance) |
template<class HT > | |
Property & | declareUpdateHandler (void(HT::*MF)(Property &), HT *instance) |
virtual void | useReadHandler () const |
use the call-back function at reading More... | |
virtual bool | useUpdateHandler () |
use the call-back function at update More... | |
virtual | ~Property ()=default |
virtual destructor More... | |
virtual Property * | clone () const =0 |
clone: "virtual constructor" More... | |
void | setName (std::string value) |
set the new value for the property name More... | |
void | setDocumentation (std::string documentation) |
set the documentation string More... | |
virtual std::ostream & | fillStream (std::ostream &) const |
the printout of the property value More... | |
Private Attributes | |
std::vector< Property * > | m_propertyList |
Additional Inherited Members | |
![]() | |
Property (const std::type_info &type, std::string name="") | |
constructor from the property name and the type More... | |
Property (std::string name, const std::type_info &type) | |
constructor from the property name and the type More... | |
Property (const Property &)=default | |
copy constructor More... | |
Property & | operator= (const Property &)=default |
assignment operator More... | |
![]() | |
std::function< void(Property &)> | m_readCallBack |
std::function< void(Property &)> | m_updateCallBack |
List of properties.
Definition at line 16 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.
|
virtual |
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 | ( | const std::string & | name | ) | const |
Get the property with a given name.
|
inline |
|
virtual |
bool PropertyList::load | ( | const std::string & | name, |
Property & | p | ||
) | const |
Property implementation: get property.
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 52 of file PropertyList.h.