Triplet Class Reference

Triplet representation of (sender,recipient,client_address) triplet. More...

#include <triplet.h>


Public Types

enum  TripletMember

Public Member Functions

 Triplet (const Reader &reader)
 Triplet (const std::string &client, const std::string &sender, const std::string &recipient, const std::string &client_numeric="")
const std::string & getClientAddress () const
const std::string & getClientAddressNumeric () const
 TODO use inet_aton instead.
const std::string getClientAddressNumericStr (const char sep='.', unsigned size=0) const
 utility function for messsages etc.
const std::string getClientAddressNumericStrSQL (const std::string &sep, const std::string &base, unsigned start, const std::string &afterstart, unsigned mult, unsigned size) const
 convenience function for SQL update, replace
const std::string getResolved () const
const std::string & getResolveError () const
const std::string & getSender () const
const std::string & getRecipient () const
const std::string & getQuotedWeakClient () const
 quoted weak client ip address, trimmed last byte e.g. '10.0.0.'
const std::string & getMember (TripletMember m) const throw (std::out_of_range)


Detailed Description

Triplet representation of (sender,recipient,client_address) triplet.

Author:
Michael Moritz

Definition at line 46 of file triplet.h.


Member Function Documentation

const std::string Triplet::getResolved (  )  const [inline]

return resolved host name or empty string if error set _not_resolved to the error message if it couldn't be resolved

Definition at line 103 of file triplet.h.

Referenced by PatternMatcher::match().


The documentation for this class was generated from the following files:
Generated on Tue Jul 24 16:36:54 2007 for gps by  doxygen 1.5.1