xorp

IfConfigObserver Class Reference

Inheritance diagram for IfConfigObserver:
IfConfigObserverDummy IfConfigObserverIPHelper

List of all members.

Public Member Functions

 IfConfigObserver (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigObserver ()
 Virtual destructor.
IfConfigifconfig ()
 Get the IfConfig instance.
FeaDataPlaneManagerfea_data_plane_manager ()
 Get the FeaDataPlaneManager instance.
virtual bool is_running () const
 Test whether this instance is running.
virtual int start (string &error_msg)=0
 Start operation.
virtual int stop (string &error_msg)=0
 Stop operation.
virtual void receive_data (const vector< uint8_t > &buffer)=0
 Receive data from the underlying system.

Protected Attributes

bool _is_running

Private Attributes

IfConfig_ifconfig
FeaDataPlaneManager_fea_data_plane_manager

Constructor & Destructor Documentation

IfConfigObserver::IfConfigObserver ( FeaDataPlaneManager fea_data_plane_manager) [inline]

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

FeaDataPlaneManager& IfConfigObserver::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

Returns:
the FeaDataPlaneManager instance.
IfConfig& IfConfigObserver::ifconfig ( ) [inline]

Get the IfConfig instance.

Returns:
the IfConfig instance.
virtual bool IfConfigObserver::is_running ( ) const [inline, virtual]

Test whether this instance is running.

Returns:
true if the instance is running, otherwise false.
virtual void IfConfigObserver::receive_data ( const vector< uint8_t > &  buffer) [pure virtual]

Receive data from the underlying system.

Parameters:
bufferthe buffer with the received data.

Implemented in IfConfigObserverDummy, and IfConfigObserverIPHelper.

virtual int IfConfigObserver::start ( string &  error_msg) [pure virtual]

Start operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implemented in IfConfigObserverDummy, and IfConfigObserverIPHelper.

virtual int IfConfigObserver::stop ( string &  error_msg) [pure virtual]

Stop operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implemented in IfConfigObserverDummy, and IfConfigObserverIPHelper.


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