blob: 54995ae36235062d71dc94376ee2345112650c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <fstream>
#include "not_create.hpp"
#include "converter/struct_to_file.hpp"
#include "converter/file_to_string.hpp"
#include "logger/logger_set.hpp"
namespace smtp::file::errors
{
NotCreatedFile::NotCreatedFile( std::string const& path )
: mPath( path )
{
}
void NotCreatedFile::Process( types::SettingsType settings_type ) const
{
std::fstream file( mPath,std::fstream::out );
file.close();
settings_type == types::SettingsType::Server ?
logger::LoggerSet::GetInstance()->LogOk("Created new settings for server"):
logger::LoggerSet::GetInstance()->LogOk("Created new settings for recipients");
}
}
|