xorp

IfMgrCommandDispatcher Class Reference

Class to dispatch Interface Manager Commands. More...

#include <ifmgr_cmd_queue.hh>

Inheritance diagram for IfMgrCommandDispatcher:
IfMgrCommandSinkBase

List of all members.

Public Types

typedef IfMgrCommandSinkBase::Cmd Cmd

Public Member Functions

 IfMgrCommandDispatcher (IfMgrIfTree &tree)
 Constructor.
void push (const Cmd &cmd)
 Push a command into local storage ready for execution.
virtual bool execute ()
 Execute command.

Protected Attributes

Cmd _cmd
IfMgrIfTree_iftree

Detailed Description

Class to dispatch Interface Manager Commands.

This class buffers exactly one Interface Manager Command (IfMgrCommandBase) and applies it to an Interface Manager Configuration Tree (IfMgrIfTree) when it's execute() method is called.


Constructor & Destructor Documentation

IfMgrCommandDispatcher::IfMgrCommandDispatcher ( IfMgrIfTree tree)

Constructor.

Parameters:
treeconfiguration tree to apply commands to.

Member Function Documentation

bool IfMgrCommandDispatcher::execute ( ) [virtual]

Execute command.

Returns:
command return status (true indicates success, false failure).

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