iSpike
2.1
Spike conversion library for robotics
|
00001 #ifndef PROPERTYHOLDER_H 00002 #define PROPERTYHOLDER_H 00003 00004 #include "iSpike/Property.hpp" 00005 00006 #include <map> 00007 #include <string> 00008 using namespace std; 00009 00010 namespace ispike { 00011 00013 class PropertyHolder { 00014 public: 00016 virtual map<string, Property> getProperties(){ return propertyMap; } 00017 00019 virtual void setProperties(map<string, Property>& properties) = 0; 00020 00021 protected: 00022 //======================= VARIABLES ======================== 00024 map<string, Property> propertyMap; 00025 00027 unsigned updatePropertyCount; 00028 00029 //======================= METHODS =========================== 00030 void addProperty(Property property); 00031 void checkProperty(Property& property); 00032 void printProperties(); 00033 int updateIntegerProperty(Property& property); 00034 double updateDoubleProperty(Property& property); 00035 string updateStringProperty(Property& property); 00036 string updateComboProperty(Property& property); 00037 00038 }; 00039 00040 } 00041 00042 #endif//PROPERTYHOLDER_H