21#ifndef G_FILTER_FACTORY_H
22#define G_FILTER_FACTORY_H
51 static Spec parse(
const std::string & spec ,
const G::Path & base_dir = {} ,
77 const Spec & )
override ;
80 static void checkNumber(
Spec & ) ;
81 static void checkNet(
Spec & ) ;
82 static void checkRange(
Spec & ) ;
A FilterFactory implementation.
static Spec parse(const std::string &spec, const G::Path &base_dir={}, const G::Path &app_dir={}, G::StringArray *warnings_p=nullptr)
Parses and validates the filter specification string returning the type and value in a Spec tuple,...
std::unique_ptr< GSmtp::Filter > newFilter(GNet::ExceptionSink, GSmtp::Filter::Type, const GSmtp::Filter::Config &, const Spec &) override
Returns a Filter on the heap.
FilterFactory(GStore::FileStore &)
Constructor.
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
A factory interface for making GSmtp::Filter message processors.
A concrete implementation of the MessageStore interface dealing in paired flat files.
A Path object represents a file system path.
std::vector< std::string > StringArray
A std::vector of std::strings.
Filter specification tuple for GSmtp::FilterFactoryBase::newFilter().
Configuration passed to filter constructors.