xorp

IfConfigUpdateReporterBase Class Reference

Base class for propagating update information on from IfConfig. More...

#include <ifconfig_reporter.hh>

Inheritance diagram for IfConfigUpdateReporterBase:
IfConfigUpdateReplicator LibFeaClientBridge MfeaNode XrlMfeaNode

List of all members.

Public Types

enum  Update { CREATED, DELETED, CHANGED }

Public Member Functions

 IfConfigUpdateReporterBase (IfConfigUpdateReplicator &update_replicator)
 Constructor for a given replicator.
 IfConfigUpdateReporterBase (IfConfigUpdateReplicator &update_replicator, const IfTree &observed_iftree)
 Constructor for a given replicator and observed tree.
virtual ~IfConfigUpdateReporterBase ()
 Destructor.
const IfTreeobserved_iftree () const
 Get a reference to the observed interface tree.
void add_to_replicator ()
 Add itself to the replicator (see ).
void remove_from_replicator ()
 Remove itself from the replicator (see ).
virtual void interface_update (const string &ifname, const Update &u)=0
virtual void vif_update (const string &ifname, const string &vifname, const Update &u)=0
virtual void vifaddr4_update (const string &ifname, const string &vifname, const IPv4 &addr, const Update &u)=0
virtual void updates_completed ()=0

Private Attributes

IfConfigUpdateReplicator_update_replicator
const IfTree_observed_iftree

Detailed Description

Base class for propagating update information on from IfConfig.

When the platform IfConfig updates interfaces it can report updates to an IfConfigUpdateReporter.


Constructor & Destructor Documentation

IfConfigUpdateReporterBase::IfConfigUpdateReporterBase ( IfConfigUpdateReplicator update_replicator)

Constructor for a given replicator.

Parameters:
update_replicatorthe corresponding replicator (IfConfigUpdateReplicator).
IfConfigUpdateReporterBase::IfConfigUpdateReporterBase ( IfConfigUpdateReplicator update_replicator,
const IfTree observed_iftree 
)

Constructor for a given replicator and observed tree.

Parameters:
update_replicatorthe corresponding replicator (IfConfigUpdateReplicator).
observed_iftreethe corresponding interface tree (IfTree).

Member Function Documentation

const IfTree& IfConfigUpdateReporterBase::observed_iftree ( ) const [inline]

Get a reference to the observed interface tree.

Returns:
a reference to the observed interface tree (see ).

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