GSmtp::FactoryParser Class Reference

A simple class to parse identifiers that can be a program in the file system or a network address. More...

#include <gfactoryparser.h>

List of all members.

Static Public Member Functions

static std::pair< std::string,
std::string > 
parse (const std::string &address, const std::string &)
 Parses an identifier.
static std::string check (const std::string &address, const std::string &)
 Parses and checks an identifier.


Detailed Description

A simple class to parse identifiers that can be a program in the file system or a network address.

Definition at line 39 of file gfactoryparser.h.


Member Function Documentation

std::pair< std::string, std::string > GSmtp::FactoryParser::parse ( const std::string &  address,
const std::string &  extra_net_prefix 
) [static]

Parses an identifier.

Definition at line 29 of file gfactoryparser.cpp.

References G_DEBUG, and G::Str::tail().

Referenced by check(), GSmtp::ProcessorFactory::newProcessor(), and GSmtp::VerifierFactory::newVerifier().

std::string GSmtp::FactoryParser::check ( const std::string &  address,
const std::string &  extra_net_prefix 
) [static]

Parses and checks an identifier.

Returns a diagnostic or the empty string if valid.

Definition at line 55 of file gfactoryparser.cpp.

References G::Executable::exe(), G::File::executable(), G::File::exists(), GNet::Resolver::parse(), and parse().

Referenced by GSmtp::VerifierFactory::check(), and GSmtp::ProcessorFactory::check().


The documentation for this class was generated from the following files:

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5