From 7a446d48b9270dbe2628b462a54a7a23ff43c572 Mon Sep 17 00:00:00 2001 From: claiff Date: Mon, 19 Sep 2022 14:03:14 +0300 Subject: temp --- src/file/settings.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/file/settings.hpp') diff --git a/src/file/settings.hpp b/src/file/settings.hpp index fb77b1e..7e5ce63 100644 --- a/src/file/settings.hpp +++ b/src/file/settings.hpp @@ -6,25 +6,27 @@ #include "converter/full.hpp" #include "parser/settings.hpp" #include "managment/general.hpp" +#include "checker/registrator_settings.hpp" namespace smtp::file { - using ParsedStoreType = std::unordered_map; + class Settings { public: - explicit Settings( std::string const& path_file ); + explicit Settings( std::string const& path_file, checker::RegistratorSettings const& registrator_errors ); ~Settings() = default; manage::SettingsFields Read() const; bool Write( manage::SettingsFields const& settings_fields ) const; private: - ParsedStoreType GetParsedStore() const; - bool SetParsedData( ParsedStoreType const& parsed_data ) const; + manage::SettingsFileDataType GetParsedStore() const; + bool SetParsedData( manage::SettingsFileDataType const& parsed_data ) const; std::string BuildParam( std::pair const& data ) const; std::string mPathFile; + checker::RegistratorSettings mRegistratorErrors; }; } -- cgit v1.2.3