class Target

A target represents where the code should be placed. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

A target consists of a protocol and a filter type. It identifies exactly which filter of which protocol has to be configured with this code.

 Target ()

Target

Default constructor.

 Target (const string& p, filter::Filter f)

Target

Construct a target [protocol/filter pair].

Parameters:

ptarget protocol.
ftarget filter.
bool  operator< (const Target& rhs)

operator<

[const]

Operator to compare Targets. Needed for STL set storage.

Parameters:

rhstarget to compare with

Returns: true if target is less than argument

bool  operator== (const Target& rhs)

operator==

[const]

bool  operator!= (const Target& rhs)

operator!=

[const]

const string  protocol ()

protocol

[const]

Get the protocol.

Returns: the protocol.

void  set_protocol (const string& protocol)

set_protocol

Set the protocol.

Parameters:

protocolthe protocol name.
filter::Filter  filter ()

filter

[const]

Get the filter type.

Returns: the filter type.

void  set_filter (const filter::Filter& filter)

set_filter

Set the filter type.

Parameters:

filterthe filter type.
string  str ()

str

[const]

Returns: string representation of target.


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:02 2009, using kdoc 2.0a54+XORP.