iSpike  2.1
Spike conversion library for robotics
ispike::PropertyHolder Class Reference

#include <PropertyHolder.hpp>

Inheritance diagram for ispike::PropertyHolder:
ispike::Channel ispike::Reader ispike::Writer ispike::InputChannel ispike::OutputChannel ispike::AngleReader ispike::VisualReader ispike::AngleWriter ispike::JointInputChannel ispike::VisualInputChannel ispike::JointOutputChannel ispike::FileAngleReader ispike::YarpAngleReader ispike::FileVisualReader ispike::YarpVisualReader ispike::FileAngleWriter ispike::YarpAngleWriter

List of all members.

Public Member Functions

virtual map< string, PropertygetProperties ()
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, PropertypropertyMap
unsigned updatePropertyCount

Detailed Description

Abstract class with functionality to get and set properties

Definition at line 13 of file PropertyHolder.hpp.


Member Function Documentation

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.

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.


Member Data Documentation

Properties

Definition at line 24 of file PropertyHolder.hpp.

Allows subclasses to track the number of properties that have been updated

Definition at line 27 of file PropertyHolder.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines