IfMgrCommandBase Class Reference

Base class for Interface Manager Commands. More...

#include <ifmgr_cmd_base.hh>

Inheritance diagram for IfMgrCommandBase:
IfMgrHintCommandBase IfMgrIfCommandBase IfMgrHintTreeComplete IfMgrHintUpdatesMade IfMgrIfAdd IfMgrIfRemove IfMgrIfSetBaudrate IfMgrIfSetDiscard IfMgrIfSetEnabled IfMgrIfSetMac IfMgrIfSetManagement IfMgrIfSetMtu IfMgrIfSetNoCarrier IfMgrIfSetPifIndex IfMgrIfSetString IfMgrIfSetUnreachable IfMgrVifCommandBase

List of all members.

Public Member Functions

virtual bool execute (IfMgrIfTree &tree) const =0
 Execute Command to interface tree.
virtual bool forward (XrlSender &sender, const string &xrl_target, const IfMgrXrlSendCB &xscb) const =0
 Forward Command as an Xrl call to a remote target.
virtual string str () const =0
 Render command as string.

Detailed Description

Base class for Interface Manager Commands.

Commands may be forwarded either on an existing interface configuration tree (represented by IfMgrIfTree objects) or as Xrls. When forwarded as Xrls the command is sent to a remote target. The two methods of forward are intended to facilitate maintaining local and remote copies of IfMgrIfTree objects.

Member Function Documentation

virtual bool IfMgrCommandBase::forward ( XrlSender sender,
const string &  xrl_target,
const IfMgrXrlSendCB &  xscb 
) const [pure virtual]

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