xorp

FilterBase Class Reference

Base class for all policy filters. More...

#include <filter_base.hh>

Inheritance diagram for FilterBase:
PolicyFilter VersionFilter

List of all members.

Public Member Functions

virtual void configure (const string &str)=0
 Configure the filter.
virtual void reset ()=0
 Reset the filter.
virtual bool acceptRoute (VarRW &varrw)=0
 See if a route is accepted by the filter.

Detailed Description

Base class for all policy filters.


Member Function Documentation

virtual bool FilterBase::acceptRoute ( VarRW varrw) [pure virtual]

See if a route is accepted by the filter.

The route may be modified by the filter [through VarRW].

Returns:
true if the route is accepted, false otherwise.
Parameters:
varrwthe VarRW associated with the route being filtered.

Implemented in PolicyFilter, and VersionFilter.

virtual void FilterBase::configure ( const string &  str) [pure virtual]

Configure the filter.

Parameters:
strfilter configuration.

Implemented in PolicyFilter, and VersionFilter.

virtual void FilterBase::reset ( ) [pure virtual]

Reset the filter.

Filter becomes a NO-operation -- default action should be returned everytime an acceptRoute is called.

Implemented in PolicyFilter, and VersionFilter.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations