diff options
author | eportnov <eportnov@ibs.ru> | 2022-09-13 15:03:25 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-09-13 15:03:25 +0300 |
commit | e8aeea36e6b48e18d27f9d7857cd29524cc8aa1f (patch) | |
tree | b99540f810072b746d033d6cd8d06aabb75afcad /src/file/settings.hpp | |
parent | a58088ec7a45bb86b155a8ef9514b35b0ba8d1c9 (diff) | |
download | obmc-sila-smtp-e8aeea36e6b48e18d27f9d7857cd29524cc8aa1f.tar.xz |
add writing filesbugfix/write_file
Diffstat (limited to 'src/file/settings.hpp')
-rw-r--r-- | src/file/settings.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/file/settings.hpp b/src/file/settings.hpp index 62182b1..fb77b1e 100644 --- a/src/file/settings.hpp +++ b/src/file/settings.hpp @@ -3,8 +3,9 @@ #include <list> #include <string> -#include "settings_converter.hpp" +#include "converter/full.hpp" #include "parser/settings.hpp" +#include "managment/general.hpp" namespace smtp::file { @@ -13,19 +14,17 @@ namespace smtp::file class Settings { public: - explicit Settings( std::string const& path_file, parser::Settings const& parser, SettingsConverter const& converter ); + explicit Settings( std::string const& path_file ); ~Settings() = default; - SettingsFields Read() const; - void Write( SettingsFields const& settings_fields ) const; + manage::SettingsFields Read() const; + bool Write( manage::SettingsFields const& settings_fields ) const; private: ParsedStoreType GetParsedStore() const; - void SetParsedData() const; + bool SetParsedData( ParsedStoreType const& parsed_data ) const; + std::string BuildParam( std::pair<std::string, std::string> const& data ) const; std::string mPathFile; - parser::Settings mParser; - SettingsConverter mConverter; - }; } |