#pragma once #include #include "errors/types/isettings_error.hpp" namespace smtp::checker { class RegistratorSettings { public: RegistratorSettings() = default; ~RegistratorSettings() = default; void Add( errors::types::IErrorSettingsPtr const& error ) { mErrors.push_back( error ); } template bool Check( T const& line ) const { for( const auto& error: mErrors ) { if( !error->Check( line )) { return false; } } return true; } private: std::list < errors::types::IErrorSettingsPtr > mErrors; }; }