\hypertarget{classIfConfigErrorReporterBase}{
\section{IfConfigErrorReporterBase Class Reference}
\label{classIfConfigErrorReporterBase}\index{IfConfigErrorReporterBase@{IfConfigErrorReporterBase}}
}


Base class for propagating error information on from \hyperlink{classIfConfig}{IfConfig}.  




{\ttfamily \#include $<$ifconfig\_\-reporter.hh$>$}

Inheritance diagram for IfConfigErrorReporterBase:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classIfConfigErrorReporterBase}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfConfigErrorReporterBase_ade17dc0015b4af4cba284dc014520639}{
virtual void {\bfseries config\_\-error} (const string \&error\_\-msg)=0}
\label{classIfConfigErrorReporterBase_ade17dc0015b4af4cba284dc014520639}

\item 
\hypertarget{classIfConfigErrorReporterBase_aa116fdefb98c717a7ea47d4b6ac7cfab}{
virtual void {\bfseries interface\_\-error} (const string \&ifname, const string \&error\_\-msg)=0}
\label{classIfConfigErrorReporterBase_aa116fdefb98c717a7ea47d4b6ac7cfab}

\item 
\hypertarget{classIfConfigErrorReporterBase_a674c304183e1475d3218fa7c9fc939d4}{
virtual void {\bfseries vif\_\-error} (const string \&ifname, const string \&vifname, const string \&error\_\-msg)=0}
\label{classIfConfigErrorReporterBase_a674c304183e1475d3218fa7c9fc939d4}

\item 
\hypertarget{classIfConfigErrorReporterBase_aef93e758b10ac2a02b42dbc4753228c1}{
virtual void {\bfseries vifaddr\_\-error} (const string \&ifname, const string \&vifname, const \hyperlink{classIPv4}{IPv4} \&addr, const string \&error\_\-msg)=0}
\label{classIfConfigErrorReporterBase_aef93e758b10ac2a02b42dbc4753228c1}

\item 
const string \& \hyperlink{classIfConfigErrorReporterBase_ab853123f6b8cafd9f080a92609161207}{first\_\-error} () const 
\item 
const string \& \hyperlink{classIfConfigErrorReporterBase_a960e52557cda431b9d5f9d6330e3806b}{last\_\-error} () const 
\item 
uint32\_\-t \hyperlink{classIfConfigErrorReporterBase_a74b566f54b0351e0c271b83b001fb05e}{error\_\-count} () const 
\item 
\hypertarget{classIfConfigErrorReporterBase_a1bd36eb53abe58ef115ecb6945cab3d7}{
void \hyperlink{classIfConfigErrorReporterBase_a1bd36eb53abe58ef115ecb6945cab3d7}{reset} ()}
\label{classIfConfigErrorReporterBase_a1bd36eb53abe58ef115ecb6945cab3d7}

\begin{DoxyCompactList}\small\item\em Reset error count and error message. \item\end{DoxyCompactList}\item 
\hypertarget{classIfConfigErrorReporterBase_aa15b751388792a62a9d0c1a59a2a142b}{
void {\bfseries log\_\-error} (const string \&s)}
\label{classIfConfigErrorReporterBase_aa15b751388792a62a9d0c1a59a2a142b}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfConfigErrorReporterBase_a5a96449b4ba8f919fafc9802ff063096}{
string {\bfseries \_\-last\_\-error}}
\label{classIfConfigErrorReporterBase_a5a96449b4ba8f919fafc9802ff063096}

\item 
\hypertarget{classIfConfigErrorReporterBase_a5e86ce19e2f1469f0e21cc8442417ec2}{
string {\bfseries \_\-first\_\-error}}
\label{classIfConfigErrorReporterBase_a5e86ce19e2f1469f0e21cc8442417ec2}

\item 
\hypertarget{classIfConfigErrorReporterBase_ac0687f7cc866a4ffe4ef907846e50f48}{
uint32\_\-t {\bfseries \_\-error\_\-cnt}}
\label{classIfConfigErrorReporterBase_ac0687f7cc866a4ffe4ef907846e50f48}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for propagating error information on from \hyperlink{classIfConfig}{IfConfig}. When \hyperlink{protocolthe-p}{the} platform \hyperlink{classIfConfig}{IfConfig} updates interfaces it can report errors to an \hyperlink{classIfConfigErrorReporterBase}{IfConfigErrorReporterBase}. The \hyperlink{classIfConfig}{IfConfig} instance takes a pointer to \hyperlink{protocolthe-p}{the} \hyperlink{classIfConfigErrorReporterBase}{IfConfigErrorReporterBase} object it should use. 

\subsection{Member Function Documentation}
\hypertarget{classIfConfigErrorReporterBase_a74b566f54b0351e0c271b83b001fb05e}{
\index{IfConfigErrorReporterBase@{IfConfigErrorReporterBase}!error\_\-count@{error\_\-count}}
\index{error\_\-count@{error\_\-count}!IfConfigErrorReporterBase@{IfConfigErrorReporterBase}}
\subsubsection[{error\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\_\-t IfConfigErrorReporterBase::error\_\-count (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classIfConfigErrorReporterBase_a74b566f54b0351e0c271b83b001fb05e}
\begin{DoxyReturn}{Returns}
number of errors reported. 
\end{DoxyReturn}
\hypertarget{classIfConfigErrorReporterBase_ab853123f6b8cafd9f080a92609161207}{
\index{IfConfigErrorReporterBase@{IfConfigErrorReporterBase}!first\_\-error@{first\_\-error}}
\index{first\_\-error@{first\_\-error}!IfConfigErrorReporterBase@{IfConfigErrorReporterBase}}
\subsubsection[{first\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}const string\& IfConfigErrorReporterBase::first\_\-error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classIfConfigErrorReporterBase_ab853123f6b8cafd9f080a92609161207}
\begin{DoxyReturn}{Returns}
error message of first error encountered. 
\end{DoxyReturn}
\hypertarget{classIfConfigErrorReporterBase_a960e52557cda431b9d5f9d6330e3806b}{
\index{IfConfigErrorReporterBase@{IfConfigErrorReporterBase}!last\_\-error@{last\_\-error}}
\index{last\_\-error@{last\_\-error}!IfConfigErrorReporterBase@{IfConfigErrorReporterBase}}
\subsubsection[{last\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}const string\& IfConfigErrorReporterBase::last\_\-error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classIfConfigErrorReporterBase_a960e52557cda431b9d5f9d6330e3806b}
\begin{DoxyReturn}{Returns}
error message of last error encountered. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/fea/ifconfig\_\-reporter.hh\end{DoxyCompactItemize}
