1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include "registrator_mails.hpp" namespace smtp::checker { void RegistratorMails::Add( errors::types::IErrorMailsPtr const& error ) { mErrors.push_back( error ); } bool RegistratorMails::Check( std::string const& line ) const { for( const auto& error : mErrors ) { if( !error->Check( line ) ) { return false; } } return true; } }