Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mrAnalyse Class Reference

Count number of recipients analysis. More...

#include <mranalyse.h>

Inheritance diagram for mrAnalyse:

Analyse Parameter List of all members.

Public Methods

 mrAnalyse ()
virtual const char * Prefix (void) const
virtual const char * Name (void) const
virtual const char * Version (void) const
virtual const char * Author (void) const
virtual const char * Help (void) const
virtual void run (std::map< std::string, unity_t > *unity_map)
virtual void print (void)
virtual void free (void)
virtual ~mrAnalyse ()

Private Attributes

const char *const strPrefix
const char *const strName
const char *const strVersion
const char *const strAuthor
const char *const strHelp
std::map< std::string, unity_t > * unity_map
std::multimap< long, std::string > most_recipients

Detailed Description

Count number of recipients analysis.

This analysis count the number of recipients of every mail (spam ;-) and create a statistic about. The result is sorted by the number of recipients.

Author:
Tobias Erbsland
See also:
Analyse


Constructor & Destructor Documentation

mrAnalyse::mrAnalyse  
 

virtual mrAnalyse::~mrAnalyse   [inline, virtual]
 


Member Function Documentation

virtual const char* mrAnalyse::Author void    const [inline, virtual]
 

Name of authors of the Object with Email in format "Firstname Lastname <email>" up to 40 chars.

Reimplemented from Parameter.

void mrAnalyse::free void    [virtual]
 

This funcion should free unused memory (from map's etc.).

Implements Analyse.

virtual const char* mrAnalyse::Help void    const [inline, virtual]
 

A short helptext, or description to this object.

Reimplemented from Parameter.

virtual const char* mrAnalyse::Name void    const [inline, virtual]
 

Select a short Name for the parameter Object.

Reimplemented from Parameter.

virtual const char* mrAnalyse::Prefix void    const [inline, virtual]
 

This function returns a unique object prefix. Use only lowercase letters (a-z) and keep this name short as possible.

Implements Parameter.

void mrAnalyse::print void    [virtual]
 

This function printout the result of this analyse to the selected report object. Is no report object selected (report is a null pointer) - nothing should happens. (check also report first!).

Implements Analyse.

void mrAnalyse::run std::map< std::string, unity_t > *    unity_map [virtual]
 

This function should do all calculations for this analyse, and store the result for multible print() calls until someone call free() or destroy the object.

Implements Analyse.

virtual const char* mrAnalyse::Version void    const [inline, virtual]
 

Version up to 8 chars in the format V-.-

Reimplemented from Parameter.


Member Data Documentation

std::multimap< long, std::string > mrAnalyse::most_recipients [private]
 

map for the analysis

const char* const mrAnalyse::strAuthor [private]
 

const char* const mrAnalyse::strHelp [private]
 

const char* const mrAnalyse::strName [private]
 

const char* const mrAnalyse::strPrefix [private]
 

const char* const mrAnalyse::strVersion [private]
 

std::map< std::string, unity_t >* mrAnalyse::unity_map [private]
 

This pointer is used to save the pointer to the _unity map_. The unity map pointer is later used in the result to get detail informations about the mails.


The documentation for this class was generated from the following files:
Generated on Wed Oct 15 13:54:52 2003 for Anteater.kdevelop by doxygen1.2.18