From d0fbd68055e3f4a796330cc8acc6c0954b5327ff Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:48:53 +0500 Subject: Run clang-format across the project --- core/io/config_map.hh | 58 +++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'core/io/config_map.hh') 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 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 m_values; +}; +} // namespace io -- cgit