class PolicyFilters

A container for all policy filters a protocol should support. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

Filters which are not used should just not be configured / executed. In the future an option to disable a filter should be added. Although, not running a filter is harmless for now [if configured however, state consumes memory].

PolicyFiltersErr (class)

PolicyFiltersErr

 PolicyFilters ()

PolicyFilters

 PolicyFilters (FilterBase* im, FilterBase* sm, FilterBase* ex)

PolicyFilters

 ~PolicyFilters ()

~PolicyFilters

[virtual]

bool  run_filter (const uint32_t& type, VarRW& varrw)

run_filter

Run a filter and decide whether route should be accepted.

May throw an exception on run-time errors.

Parameters:

typewhich filter should be executed.
varrwthe VarRW associated with the route to be filtered.

Returns: true if route is accepted, false otherwise.

void  configure (const uint32_t& type, const string& conf)

configure

Configure a filter.

Throws an exception on error.

Parameters:

typethe filter to configure.
confthe configuration of the filter.
void  reset (const uint32_t& type)

reset

Reset a filter.

Parameters:

typethe filter to reset.

Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:57 2008, using kdoc 2.0a54+XORP.