#include <PropertyContainer.hpp>
Public Member Functions | |
PropertySharedPtr | getProperty (const std::string &inName) throw () |
bool | setProperty (const std::string &inName, const PropertySharedPtr &inProperty) throw () |
void | getProperties (std::map< std::string, PropertySharedPtr > &outProperties) const throw () |
void | setProperties (const std::map< std::string, PropertySharedPtr > &inSource) throw () |
template<typename _Action> | |
void | applyOnAllProperties (const _Action &action) throw (Error) |
Private Member Functions | |
PropertyContainer (const PropertyContainer &source) throw () | |
PropertyContainer & | operator= (const PropertyContainer &source) throw () |
Private Attributes | |
SymTab< std::string, PropertySharedPtr > | mProperties |
The PropertyContainer interface is generalized by classes tat need to hold one or more properties. A property is identified by name in the container.
Definition at line 41 of file PropertyContainer.hpp.
PropertySharedPtr torc::generic::PropertyContainer::getProperty | ( | const std::string & | inName | ) | throw () |
Get a property
[in] | inName | Name of the property to be retreived |
[in] | name | Name of the property to be retreived |
Definition at line 42 of file PropertyContainer.cpp.
bool torc::generic::PropertyContainer::setProperty | ( | const std::string & | inName, | |
const PropertySharedPtr & | inProperty | |||
) | throw () |
Save the inSource of a property
[in] | inName | Name of the property to be saved |
[in] | inProperty | Pointer to the property object if present, empty pointer otherwise. |
[in] | inName | Name of the property to be saved |
[in] | inPoperty | Pointer to the property object if present, empty pointer otherwise. |
Definition at line 61 of file PropertyContainer.cpp.
void torc::generic::PropertyContainer::getProperties | ( | std::map< std::string, PropertySharedPtr > & | outProperties | ) | const throw () [inline] |
Get the map of all properties
[out] | outProperties | The map of properties |
Definition at line 120 of file PropertyContainer.hpp.
void torc::generic::PropertyContainer::setProperties | ( | const std::map< std::string, PropertySharedPtr > & | inSource | ) | throw () |
Set the map of properties
[in] | inSource | The map of properties |
Definition at line 77 of file PropertyContainer.cpp.
void torc::generic::PropertyContainer::applyOnAllProperties | ( | const _Action & | action | ) | throw (Error) [inline] |
Apply action on all properties.
[in] | action | Action to be applied |
Definition at line 128 of file PropertyContainer.hpp.