summaryrefslogtreecommitdiff
path: root/src/checker/errors/types/isettings_error.hpp
blob: 8c9d25a5e69df848616b62355c4acdd9ca530d27 (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 "general/struct.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( general::SettingsFileDataType const& line ) const = 0;
	};
	using IErrorSettingsPtr = std::shared_ptr<IErrorSettings>;
}