iSpike
2.1
Spike conversion library for robotics
|
#include <PropertyHolder.hpp>
Public Member Functions | |
virtual map< string, Property > | getProperties () |
virtual void | setProperties (map< string, Property > &properties)=0 |
Protected Member Functions | |
void | addProperty (Property property) |
void | checkProperty (Property &property) |
void | printProperties () |
int | updateIntegerProperty (Property &property) |
double | updateDoubleProperty (Property &property) |
string | updateStringProperty (Property &property) |
string | updateComboProperty (Property &property) |
Protected Attributes | |
map< string, Property > | propertyMap |
unsigned | updatePropertyCount |
Abstract class with functionality to get and set properties
Definition at line 13 of file PropertyHolder.hpp.
void PropertyHolder::addProperty | ( | Property | property | ) | [protected] |
Adds a property to the map
Definition at line 12 of file PropertyHolder.cpp.
void PropertyHolder::checkProperty | ( | Property & | property | ) | [protected] |
Checks that property exists and that its name in the map matches its internal name
Definition at line 60 of file PropertyHolder.cpp.
virtual map<string, Property> ispike::PropertyHolder::getProperties | ( | ) | [inline, virtual] |
Returns a map containing the current properties
Definition at line 16 of file PropertyHolder.hpp.
void PropertyHolder::printProperties | ( | ) | [protected] |
Prints out the properties
Definition at line 69 of file PropertyHolder.cpp.
virtual void ispike::PropertyHolder::setProperties | ( | map< string, Property > & | properties | ) | [pure virtual] |
Sets the properties
Implemented in ispike::VisualInputChannel, ispike::JointInputChannel, ispike::FileAngleReader, ispike::YarpVisualReader, ispike::YarpAngleWriter, ispike::JointOutputChannel, ispike::FileVisualReader, ispike::YarpAngleReader, and ispike::FileAngleWriter.
string PropertyHolder::updateComboProperty | ( | Property & | property | ) | [protected] |
Checks property exists, updates the property in the map with the value in the supplied property and returns its value if it does
Definition at line 46 of file PropertyHolder.cpp.
double PropertyHolder::updateDoubleProperty | ( | Property & | property | ) | [protected] |
Checks property exists, updates the property in the map with the value in the supplied property and returns its value if it does
Definition at line 30 of file PropertyHolder.cpp.
int PropertyHolder::updateIntegerProperty | ( | Property & | property | ) | [protected] |
Checks property exists and returns its value if it does
Definition at line 22 of file PropertyHolder.cpp.
string PropertyHolder::updateStringProperty | ( | Property & | property | ) | [protected] |
Checks property exists, updates the property in the map with the value in the supplied property and returns its value if it does
Definition at line 38 of file PropertyHolder.cpp.
map<string, Property> ispike::PropertyHolder::propertyMap [protected] |
Properties
Definition at line 24 of file PropertyHolder.hpp.
unsigned ispike::PropertyHolder::updatePropertyCount [protected] |
Allows subclasses to track the number of properties that have been updated
Definition at line 27 of file PropertyHolder.hpp.