1 #ifndef PROPERTY_CONTAINER_H
2 #define PROPERTY_CONTAINER_H
25 std::string
getProperty(
const std::string &name)
const;
43 void setProperty(
const std::string &name,
const std::string &value =
"");
89 this->exceptionStr =
"The property named " + name +
" was not found.";
95 const char* what()
const throw() {
96 return this->exceptionStr.c_str();
100 std::string exceptionStr;
107 typedef std::map <std::string, std::string> propertiesType;
108 propertiesType properties;
113 #endif //PROPERTY_CONTAINER_H
Definition: property-container.h:86
void setProperty(const std::string &name, const std::string &value="")
Definition: property-container.cpp:29
void addProperties(const PropertyContainer &other)
Definition: property-container.cpp:43
std::string getProperty(const std::string &name) const
Definition: property-container.cpp:5
std::set< std::string > getAllProperties() const
Definition: property-container.cpp:77
std::string removeProperty(const std::string &name)
Definition: property-container.cpp:49
Definition: property-container.h:15
bool hasProperty(const std::string &name) const
Definition: property-container.cpp:34