\hypertarget{classMessageDecoder}{
\section{MessageDecoder Class Reference}
\label{classMessageDecoder}\index{MessageDecoder@{MessageDecoder}}
}


Decoder for OLSR protocol messages.  




{\ttfamily \#include $<$message.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classMessageDecoder_a6e8ee6ef7373e2b644534ed966f885d6}{
\hyperlink{classMessage}{Message} $\ast$ {\bfseries decode} (uint8\_\-t $\ast$ptr, size\_\-t len)  throw (InvalidMessage)}
\label{classMessageDecoder_a6e8ee6ef7373e2b644534ed966f885d6}

\item 
\hypertarget{classMessageDecoder_a6bb893d020037c869b632446d79f7e8d}{
void {\bfseries register\_\-decoder} (\hyperlink{classMessage}{Message} $\ast$message)}
\label{classMessageDecoder_a6bb893d020037c869b632446d79f7e8d}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classMessageDecoder_ab6581342b2d169ae3f3cd2542b9f5cae}{
map$<$ \hyperlink{structOlsrTypes_a9a6a2deb80121d170b11c18f5d77769b}{OlsrTypes::MessageType}, \hyperlink{classMessage}{Message} $\ast$ $>$ {\bfseries \_\-olsrv1}}
\label{classMessageDecoder_ab6581342b2d169ae3f3cd2542b9f5cae}

\item 
\hypertarget{classMessageDecoder_a374b96e531d45aa539211ae9612be9f0}{
\hyperlink{classUnknownMessage}{UnknownMessage} {\bfseries \_\-olsrv1\_\-unknown}}
\label{classMessageDecoder_a374b96e531d45aa539211ae9612be9f0}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Decoder for OLSR protocol messages. Empty messages are registered with this class in a producer/consumer pattern. When adding a new message class, make sure in its decode() method that you are storing \hyperlink{protocolthe-p}{the} message properties in \hyperlink{protocolthe-p}{the} message you've created -\/-\/ not \hyperlink{protocolthe-p}{the} fields of \hyperlink{protocolthe-p}{the} empty message registered with this class. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/message.hh\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/message.cc\end{DoxyCompactItemize}
