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

FiltersFactory Class Reference

List of all members.

Public Member Functions

int chain (FiltersChain *, list< string > &l, Stream *out, u_long *nbw, int onlyNotModifiers=0)
FiltersChainchain (list< string > &l, Stream *out, u_long *nbw, int onlyNotModifiers=0)
 FiltersFactory ()
void free ()
FiltergetFilter (const char *)
int insert (const char *, FILTERCREATE ptr)
 ~FiltersFactory ()

Protected Attributes

HashMap< string, FILTERCREATEdictionary

Constructor & Destructor Documentation

FiltersFactory::FiltersFactory  ) 
 

Initialize the object.

FiltersFactory::~FiltersFactory  ) 
 

Destroy the object.


Member Function Documentation

int FiltersFactory::chain FiltersChain c,
list< string > &  l,
Stream out,
u_long *  nbw,
int  onlyNotModifiers = 0
 

Add new filters to an existent chain. If specified [onlyNotModifiers] the method wil check that all the filters will not modify the data. On errors returns nonzero.

FiltersChain * FiltersFactory::chain list< string > &  l,
Stream out,
u_long *  nbw,
int  onlyNotModifiers = 0
 

Create a FiltersChain starting from a list of strings. On success returns the new object. If specified [onlyNotModifiers] the method wil check that all the filters will not modify the data. On errors returns 0.

void FiltersFactory::free  ) 
 

Free the object.

Filter * FiltersFactory::getFilter const char *  name  ) 
 

Get a new filter by its name. The object have to be freed after its use to avoid memory leaks. Returns the new created object on success. Returns 0 on errors.

int FiltersFactory::insert const char *  name,
FILTERCREATE  fnc
 

Insert a filter by name and factory routine. Returns 0 if the entry was added correctly.


Member Data Documentation

HashMap<string, FILTERCREATE> FiltersFactory::dictionary [protected]
 


Generated on Wed Nov 8 13:12:48 2006 for MyServer by doxygen 1.3.6