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

DnsblManager.cpp File Reference

#include "DnsblManager.h"
#include <algorithm>
#include <abuse/Analyze.h>
#include "utils.h"
#include "RegPropertyBag.h"
#include "Property.h"
#include "XmlUtils.h"
#include "XmlDnsblCache.h"
#include <abuse/Utils.h>
#include <sstream>
#include "resource.h"

Classes

struct  Save

Defines

#define DNSBLCACHEPATH   "DnsblCache"
#define ASSERTPRESENT(meth, n)   if(m_map.find(n)==m_map.end()) throw runtime_error("The dnsbl is not present")
#define ASSERTABSENT(meth, n)   if(m_map.find(n)!=m_map.end())throw runtime_error("The dnsbl is already present")
#define MOREDATA   "More Data"
#define DESCRIPTION   "Description"
#define CACHEVALIDITY   "Cache Validity"
#define ISACTIVE   "Active"
#define COMMENT   "Dnsbls list for Abuse!"
#define ROOT_TAG   "Dnsbls"
#define DNSBL_TAG   "Dnsbl"
#define NAME_TAG   "Name"
#define DESCRIPTION_TAG   "Description"
#define RESULT_TAG   "Result"
#define CACHEVALIDITY_TAG   "Cache_Validity"
#define ISACTIVE_TAG   "Active"
#define ANY_TAG   "Any"
#define NOTLISTEDVALUE   "NOTLISTED"
#define SPAMSOURCEVALUE   "SPAMSOURCE"
#define SPAMVERTIZEDVALUE   "SPAMVERTIZED"
#define SPAMWAREVALUE   "SPAMWARE"
#define OPENPROXYVALUE   "OPENPROXY"
#define OPENRELAYVALUE   "OPENRELAY"
#define DIALUPVALUE   "DIALUP"
#define UNKNOWNVALUE   "LISTEDUNKNOWN"

Typedefs

typedef std::map< std::string,
Result > 
ResultMap
typedef std::map< Result,
std::string > 
InverseMap

Functions

static ResultMap initMap ()
static InverseMap initInverseMap ()
static void mapdeleter (map< std::string, DnsblManager::DnsblData * >::value_type vt)

Define Documentation

#define ANY_TAG   "Any"
 

#define ASSERTABSENT meth,
 )     if(m_map.find(n)!=m_map.end())throw runtime_error("The dnsbl is already present")
 

#define ASSERTPRESENT meth,
 )     if(m_map.find(n)==m_map.end()) throw runtime_error("The dnsbl is not present")
 

#define CACHEVALIDITY   "Cache Validity"
 

#define CACHEVALIDITY_TAG   "Cache_Validity"
 

#define COMMENT   "Dnsbls list for Abuse!"
 

#define DESCRIPTION   "Description"
 

#define DESCRIPTION_TAG   "Description"
 

#define DIALUPVALUE   "DIALUP"
 

#define DNSBL_TAG   "Dnsbl"
 

#define DNSBLCACHEPATH   "DnsblCache"
 

#define ISACTIVE   "Active"
 

#define ISACTIVE_TAG   "Active"
 

#define MOREDATA   "More Data"
 

#define NAME_TAG   "Name"
 

#define NOTLISTEDVALUE   "NOTLISTED"
 

#define OPENPROXYVALUE   "OPENPROXY"
 

#define OPENRELAYVALUE   "OPENRELAY"
 

#define RESULT_TAG   "Result"
 

#define ROOT_TAG   "Dnsbls"
 

#define SPAMSOURCEVALUE   "SPAMSOURCE"
 

#define SPAMVERTIZEDVALUE   "SPAMVERTIZED"
 

#define SPAMWAREVALUE   "SPAMWARE"
 

#define UNKNOWNVALUE   "LISTEDUNKNOWN"
 


Typedef Documentation

typedef std::map<Result,std::string> InverseMap
 

typedef std::map<std::string,Result> ResultMap
 


Function Documentation

static InverseMap initInverseMap  )  [static]
 

static ResultMap initMap  )  [static]
 

static void mapdeleter map< std::string, DnsblManager::DnsblData * >::value_type  vt  )  [static]
 


Generated on Thu Jun 16 00:13:25 2005 for Abuse! by  doxygen 1.4.3