summaryrefslogtreecommitdiff
path: root/src/checker/errors/types/imails_error.hpp
blob: 277f82ef9a4c6585c5dfce75c35eef7dae92f1d4 (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
#pragma once

#include <memory>
#include <string>

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

        std::string GetMethodName() const
        {
            static const std::string METHOD_NAME = "Check mails";
            return METHOD_NAME;
        }

        virtual bool Check( std::string const& line ) const = 0;
    };
    using IErrorMailsPtr = std::shared_ptr<IErrorMails>;
}