21#ifndef G_VERIFIER_FACTORY_H
22#define G_VERIFIER_FACTORY_H
35 class VerifierFactory ;
47 static Spec parse(
const std::string & spec ,
const G::Path & base_dir = {} ,
73 static void checkFile( Spec & result ,
G::StringArray * warnings_p ) ;
74 static void fixFile( Spec & result ,
const G::Path & base_dir ,
const G::Path & app_dir ) ;
75 static void checkNet( Spec & result ) ;
76 static void checkRange( Spec & result ) ;
77 static void checkExit( Spec & result ) ;
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
A factory interface for addresss verifiers.
A VerifierFactory implementation.
VerifierFactory()
Constructor.
static Spec parse(const std::string &spec, const G::Path &base_dir={}, const G::Path &app_dir={}, G::StringArray *warnings_p=nullptr)
Parses a verifier specification string like "/usr/bin/foo" or "net:127.0.0.1:99" or "net:/run/spamd....
std::unique_ptr< GSmtp::Verifier > newVerifier(GNet::ExceptionSink, const GSmtp::Verifier::Config &config, const GSmtp::VerifierFactoryBase::Spec &spec) override
Returns a Verifier on the heap.
A Path object represents a file system path.
Address verifier classes.
std::vector< std::string > StringArray
A std::vector of std::strings.
Verifier specification tuple for GSmtp::VerifierFactoryBase::newVerifier().
Configuration passed to address verifier constructors.