|
torc-master
|
Represents objects that have properties. More...
#include <PropertyContainer.hpp>
Inheritance diagram for torc::generic::PropertyContainer:
Collaboration diagram for torc::generic::PropertyContainer:Public Member Functions | |
| PropertySharedPtr | getProperty (const std::string &inName) |
| bool | setProperty (const std::string &inName, const PropertySharedPtr &inProperty) |
| void | getProperties (std::map< std::string, PropertySharedPtr > &outProperties) const |
| void | setProperties (const std::map< std::string, PropertySharedPtr > &inSource) |
| template<typename _Action > | |
| void | applyOnAllProperties (const _Action &action) throw (Error) |
| ~PropertyContainer () throw () | |
Protected Member Functions | |
| PropertyContainer () | |
Private Member Functions | |
| PropertyContainer (const PropertyContainer &source) | |
| PropertyContainer & | operator= (const PropertyContainer &source) |
Private Attributes | |
| SymTab< std::string, PropertySharedPtr > | mProperties |
Represents objects that have properties.
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 39 of file PropertyContainer.hpp.
|
protected |
Definition at line 73 of file PropertyContainer.cpp.
| torc::generic::PropertyContainer::~PropertyContainer | ( | ) | ||
| throw | ( | |||
| ) | ||||
Definition at line 75 of file PropertyContainer.cpp.
|
private |
|
inline | ||||||||||||||
Apply action on all properties.
| [in] | action | Action to be applied |
Definition at line 113 of file PropertyContainer.hpp.
Here is the call graph for this function:
|
inline |
Get the map of all properties
| [out] | outProperties | The map of properties |
Get the map of all properties
Definition at line 107 of file PropertyContainer.hpp.
Here is the call graph for this function:| PropertySharedPtr torc::generic::PropertyContainer::getProperty | ( | const std::string & | inName | ) |
Get a property
| [in] | inName | Name of the property to be retreived |
Get a property
| [in] | name | Name of the property to be retreived |
Definition at line 37 of file PropertyContainer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| void torc::generic::PropertyContainer::setProperties | ( | const std::map< std::string, PropertySharedPtr > & | inSource | ) |
Set the map of properties
| [in] | inSource | The map of properties |
Definition at line 66 of file PropertyContainer.cpp.
Here is the call graph for this function:| bool torc::generic::PropertyContainer::setProperty | ( | const std::string & | inName, |
| const PropertySharedPtr & | inProperty | ||
| ) |
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. |
Save the inSource of a property
| [in] | inName | Name of the property to be saved |
| [in] | inPoperty | Pointer to the property object if present, empty pointer otherwise. |
Definition at line 53 of file PropertyContainer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 99 of file PropertyContainer.hpp.