class SimpleIfConfigErrorReporter

Class for propagating error information during IfConfig operations. More...

Definition#include <ifconfig.hh>
InheritsIfConfigErrorReporterBase [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

 SimpleIfConfigErrorReporter ()

SimpleIfConfigErrorReporter

void  interface_error (const string& ifname, const string& error_msg)

interface_error

Reimplemented from IfConfigErrorReporterBase.

void  vif_error (const string& ifname, const string& vifname, const string& error_msg)

vif_error

Reimplemented from IfConfigErrorReporterBase.

void  vifaddr_error (const string& ifname, const string& vifname, const IPv4& addr, const string& error_msg)

vifaddr_error

Reimplemented from IfConfigErrorReporterBase.

void  vifaddr_error (const string& ifname, const string& vifname, const IPv6& addr, const string& error_msg)

vifaddr_error

Reimplemented from IfConfigErrorReporterBase.

inline const string&  first_error ()

first_error

[const]

Returns: error message of first error encountered.

inline const string&  last_error ()

last_error

[const]

Returns: error message of last error encountered.

inline uint32_t  error_count ()

error_count

[const]

Returns: number of errors reported.

inline void  reset ()

reset

Reset error count and error message.

inline void  log_error (const string& s)

log_error

[protected]

string _last_error

_last_error

[protected]

string _first_error

_first_error

[protected]

uint32_t _error_cnt

_error_cnt

[protected]


Generated by: pavlin on possum.icir.org on Mon Mar 10 19:34:57 2003, using kdoc 2.0a54+XORP.