summaryrefslogtreecommitdiffstats
path: root/core/io/config_map.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/config_map.hh')
-rw-r--r--core/io/config_map.hh58
1 files changed, 29 insertions, 29 deletions
diff --git a/core/io/config_map.hh b/core/io/config_map.hh
index b0cd579..6b99564 100644
--- a/core/io/config_map.hh
+++ b/core/io/config_map.hh
@@ -1,29 +1,29 @@
-#pragma once
-
-namespace config
-{
-class IValue;
-} // namespace config
-
-namespace io
-{
-class ConfigMap final {
-public:
- ConfigMap(void) = default;
- virtual ~ConfigMap(void) = default;
-
- void load_cmdline(void);
- bool load_file(std::string_view path);
- bool save_file(std::string_view path) const;
-
- bool set_value(std::string_view name, std::string_view value);
- std::string_view get_value(std::string_view name) const;
-
- void add_value(std::string_view name, config::IValue& vref);
-
- const config::IValue* find(std::string_view name) const;
-
-private:
- std::unordered_map<std::string, config::IValue*> m_values;
-};
-} // namespace io
+#pragma once
+
+namespace config
+{
+class IValue;
+} // namespace config
+
+namespace io
+{
+class ConfigMap final {
+public:
+ ConfigMap(void) = default;
+ virtual ~ConfigMap(void) = default;
+
+ void load_cmdline(void);
+ bool load_file(std::string_view path);
+ bool save_file(std::string_view path) const;
+
+ bool set_value(std::string_view name, std::string_view value);
+ std::string_view get_value(std::string_view name) const;
+
+ void add_value(std::string_view name, config::IValue& vref);
+
+ const config::IValue* find(std::string_view name) const;
+
+private:
+ std::unordered_map<std::string, config::IValue*> m_values;
+};
+} // namespace io