45 const std::string &def = std::string())
const
107 if (i->second ==
"true")
109 if (i->second ==
"false")
133 void setProperty(
const std::string &name,
const std::string &value)
A class holding a set of properties.
void setProperty(const std::string &name, const std::string &value)
Set a map property.
std::map< std::string, std::string > PropertyMap
std::string getProperty(const std::string &name, const std::string &def=std::string()) const
Get a map property.
bool hasProperty(const std::string &name) const
Returns whether a certain property is available.
virtual ~Properties()=default
float getIntProperty(const std::string &name, int def=0) const
Gets a map property as an int.
float getFloatProperty(const std::string &name, float def=0.0f) const
Gets a map property as a float.
bool getBoolProperty(const std::string &name, bool def=false) const
Gets a map property as a boolean.