xorp

ProtocolMap Class Reference

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

#include <protocol_map.hh>

Inheritance diagram for ProtocolMap:
NONCOPYABLE

List of all members.

Public Member Functions

const string & xrl_target (const string &protocol)
 Determine the XRL target for a protocol.
void set_xrl_target (const string &protocol, const string &target)
 Set the XRL target for a protocol.
const string & protocol (const string &target)
 Return internal protocol name based on XRL target.

Private Types

typedef map< string, string > Map

Private Attributes

Map _map

Detailed Description

Maps protocols to the XORP process name.

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.


Member Function Documentation

const string & ProtocolMap::protocol ( const string &  target)

Return internal protocol name based on XRL target.

Returns:
protocol name.
Parameters:
targetthe XRL target for the protocol.
void ProtocolMap::set_xrl_target ( const string &  protocol,
const string &  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 & ProtocolMap::xrl_target ( const string &  protocol)

Determine the XRL target for a protocol.

Returns:
the XRL target for the protocol.
Parameters:
protocolthe protocol for which the XRL target is wanted.

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