summaryrefslogtreecommitdiff
path: root/src/checker/errors/types/isettings_error.hpp
blob: 6355d79b3a078b0e11a3f4312e514b99c5be5bf2 (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
26
27
//
// Created by claiff on 18.09.22.
//

#pragma once

#include <memory>

#include "management/general.hpp"

namespace smtp::checker::errors::types
{
	class IErrorSettings
	{
	public:
		IErrorSettings() = default;
		virtual ~IErrorSettings() = default;

        std::string GetMethodName() const
        {
            static const std::string METHOD_NAME = "Check settings";
            return METHOD_NAME;
        }
		virtual bool Check( manage::SettingsFileDataType const& line ) const = 0;
	};
	using IErrorSettingsPtr = std::shared_ptr<IErrorSettings>;
}