class ProtocolMap

Maps protocols to the XORP process name. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

By default the mapping is the protocol name itself unless an entry has been explicitly added. This class is used to map user configuration directives regarding protocols to the actual name of the XORP process for that protocol.

 ProtocolMap ()

ProtocolMap

const string&  xrl_target (const string& protocol)

xrl_target

Determine the XRL target for a protocol.

Parameters:

protocolthe protocol for which the XRL target is wanted.

Returns: the XRL target for the protocol.

void  set_xrl_target (const string& protocol, const string& target)

set_xrl_target

Set the XRL target for a protocol.

Parameters:

protocolthe protocol for which the XRL target needs to be set.
targetthe XRL target for the protocol.
const string&  protocol (const string& target)

protocol

Return internal protocol name based on XRL target.

Parameters:

targetthe XRL target for the protocol.

Returns: protocol name.


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