Public Member Functions | |
int | addFilter (Filter *, u_long *nbw, int sendData=1) |
int | clear () |
void | clearAllFilters () |
FiltersChain () | |
int | flush (u_long *) |
int | getAcceptDuplicates () |
Filter * | getFirstFilter () |
void | getName (string &out) |
Protocol * | getProtocol () |
void * | getProtocolData () |
Stream * | getStream () |
int | hasModifiersFilters () |
int | isEmpty () |
int | isFilterPresent (const char *) |
int | isFilterPresent (Filter *) |
int | read (char *buffer, u_long len, u_long *) |
int | removeFilter (Filter *) |
void | setAcceptDuplicates (int) |
void | setProtocol (Protocol *pr) |
void | setProtocolData (void *prd) |
void | setStream (Stream *) |
int | write (const char *buffer, u_long len, u_long *) |
~FiltersChain () | |
Protected Attributes | |
int | acceptDuplicates |
list< Filter * > | filters |
Filter * | firstFilter |
Protocol * | protocol |
void * | protocolData |
Stream * | stream |
|
Initialize the chain object. |
|
Destroy the chain. |
|
Add a filter to the chain. Returns 0 on success. the number of bytes written to initialize the filter. |
|
|
|
Destroy filters objects. This destroys all the filters objects in the list. |
|
Flush remaining data. Additional footer data for filters is added at the end. Returns 0 on success. |
|
Return if the chain can have the same filter in multiple places. |
|
Get the first filter of the chain. |
|
Fullfill the out string with a comma separated list of the filters present in the chain. |
|
|
|
|
|
Get the stream usedby the chain. |
|
Returns a nonzero value if the chain contains any modifier filter. |
|
Returns a nonzero value if the chain is empty. |
|
Check if a filter is present in the chain by its name. |
|
Check if a filter is present in the chain. |
|
Read data from the chain. Returns 0 on success. |
|
Remove the first occurrence of the specified filter from the chain. |
|
Set if the chain can cointain duplicates of the same filter on different levels. |
|
|
|
|
|
Set the stream where apply the filters. |
|
Write data using the chain. Returns 0 on success. |
|
|
|
|
|
|
|
|
|
|
|
|