The Gaudi Framework
v30r3 (a5ef0a68)
|
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) 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 (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... | |
Private Attributes | |
std::vector< Property * > | m_propertyList |
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.
|
override |
Property implementation: set property.
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 |
|
override |
Property implementation: get property.
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 54 of file PropertyList.h.