21#ifndef G_FILTER_FACTORY_H
22#define G_FILTER_FACTORY_H
85 const Spec & )
override ;
88 static void checkNumber(
Spec & ) ;
89 static void checkNet(
Spec & ) ;
90 static void checkRange(
Spec & ) ;
A FilterFactory implementation.
std::unique_ptr< GSmtp::Filter > newFilter(GNet::EventState, GSmtp::Filter::Type, const GSmtp::Filter::Config &, const Spec &) override
Returns a Filter on the heap.
static Spec parse(std::string_view 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,...
FilterFactory(GStore::FileStore &)
Constructor.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
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.