settings reader fix
This commit is contained in:
@@ -113,6 +113,10 @@ Setting* SettingsHandler::getSetting(const std::string& name) const {
|
||||
return found->second;
|
||||
}
|
||||
|
||||
bool SettingsHandler::has(const std::string& name) const {
|
||||
return map.find(name) != map.end();
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static void set_numeric_value(T* setting, const dynamic::Value& value) {
|
||||
switch (value.type) {
|
||||
|
||||
@@ -26,6 +26,7 @@ public:
|
||||
void setValue(const std::string& name, const dynamic::Value& value);
|
||||
std::string toString(const std::string& name) const;
|
||||
Setting* getSetting(const std::string& name) const;
|
||||
bool has(const std::string& name) const;
|
||||
|
||||
std::vector<Section>& getSections();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user