Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

XmlDnsblCache Class Reference

#include <XmlDnsblCache.h>

List of all members.

Public Member Functions

 XmlDnsblCache (const std::string &path, const std::string &dnsblname="")
 ~XmlDnsblCache ()
void setValidity (int hours)
int getValidity () const
Result get (const Url &what, std::string *comments=NULL) const throw (cache_miss)
void put (const Url &what, Result entry, const std::string *comments=NULL)
void save (const std::string &name="") throw (std::runtime_error)

Private Types

typedef std::map< Url, EntryCacheMap

Private Member Functions

std::string writeDateTime (time_t time) const
time_t readDateTime (const std::string &fmt) const

Private Attributes

CacheMap m_map
int m_validity
time_t m_lastvalid
std::string m_name
std::string m_dnsblName

Static Private Attributes

static const int DEFAULT_VALIDITY = 10*24

Classes

struct  Entry


Member Typedef Documentation

typedef std::map<Url,Entry> XmlDnsblCache::CacheMap [private]
 


Constructor & Destructor Documentation

XmlDnsblCache::XmlDnsblCache const std::string &  path,
const std::string &  dnsblname = ""
 

XmlDnsblCache::~XmlDnsblCache  ) 
 


Member Function Documentation

Result XmlDnsblCache::get const Url &  what,
std::string *  comments = NULL
const throw (cache_miss)
 

int XmlDnsblCache::getValidity  )  const
 

void XmlDnsblCache::put const Url &  what,
Result  entry,
const std::string *  comments = NULL
 

time_t XmlDnsblCache::readDateTime const std::string &  fmt  )  const [private]
 

void XmlDnsblCache::save const std::string &  name = ""  )  throw (std::runtime_error)
 

void XmlDnsblCache::setValidity int  hours  ) 
 

string XmlDnsblCache::writeDateTime time_t  time  )  const [private]
 


Member Data Documentation

const int XmlDnsblCache::DEFAULT_VALIDITY = 10*24 [static, private]
 

std::string XmlDnsblCache::m_dnsblName [private]
 

time_t XmlDnsblCache::m_lastvalid [private]
 

CacheMap XmlDnsblCache::m_map [private]
 

std::string XmlDnsblCache::m_name [private]
 

int XmlDnsblCache::m_validity [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 00:13:27 2005 for Abuse! by  doxygen 1.4.3