<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\section{lccd\-:\-:Xdr Class Reference}
\label{classlccd_1_1Xdr}\index{lccd\-::\-Xdr@{lccd\-::\-Xdr}}


Utility functions for D\-B streamer objects.  




{\ttfamily \#include $&lt;$Xdr.\-hh$&gt;$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static void {\bf copy} (unsigned const char $\ast$from, unsigned char $\ast$dest, const int size, const int count)
\begin{DoxyCompactList}\small\item\em Copies the the data in X\-D\-R, i.\-e. \end{DoxyCompactList}\item 
{\footnotesize template$&lt;$class T $&gt;$ }\\static void {\bf tostream} (std\-::string \&amp;s, T $\ast$t, unsigned count)\label{classlccd_1_1Xdr_a3d892db35a99d78e68d124b5605e3ff1}

\begin{DoxyCompactList}\small\item\em Writes count objects of (simple) type T to the string s in \doxyref{Xdr}{p.}{classlccd_1_1Xdr} format. \end{DoxyCompactList}\item 
{\footnotesize template$&lt;$class T $&gt;$ }\\static unsigned {\bf fromstream} (const std\-::string \&amp;s, unsigned position, T $\ast$t, unsigned count)
\begin{DoxyCompactList}\small\item\em Read count objects of (simple) type t from the string/stream s at position. \end{DoxyCompactList}\item 
static void {\bf tostream} (std\-::string \&amp;s, std\-::string $\ast$str\-Val, unsigned count)\label{classlccd_1_1Xdr_aa091afb5ec149a2bd51473d825033700}

\begin{DoxyCompactList}\small\item\em Specialization for strings -\/ count is ignored and taken to be 1. \end{DoxyCompactList}\item 
static unsigned {\bf fromstream} (const std\-::string \&amp;s, unsigned index, std\-::string $\ast$str\-Val, unsigned count)
\begin{DoxyCompactList}\small\item\em Specialization for strings -\/ count is ignored and taken to be 1. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Utility functions for D\-B streamer objects. 

These functions take care of the byte ordering and make sure the streamed data adheres to the xdr convention, e.\-g. every data item starts at a 32-\/bit word boundary.

\begin{DoxyAuthor}{Author}
F.\-Gaede, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Xdr.\-hh}{p.}{Xdr_8hh_source},v 1.\-3 2005-\/09-\/09 08\-:09\-:37 gaede Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{lccd\-::\-Xdr@{lccd\-::\-Xdr}!copy@{copy}}
\index{copy@{copy}!lccd::Xdr@{lccd\-::\-Xdr}}
\subsubsection[{copy}]{\setlength{\rightskip}{0pt plus 5cm}static void lccd\-::\-Xdr\-::copy (
\begin{DoxyParamCaption}
\item[{unsigned const char $\ast$}]{from, }
\item[{unsigned char $\ast$}]{dest, }
\item[{const int}]{size, }
\item[{const int}]{count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classlccd_1_1Xdr_aa1ad3bcb59191d0a89f69ff7a6390a4e}


Copies the the data in X\-D\-R, i.\-e. 

machine independent format from one location to the another 

Referenced by fromstream(), and tostream().

\index{lccd\-::\-Xdr@{lccd\-::\-Xdr}!fromstream@{fromstream}}
\index{fromstream@{fromstream}!lccd::Xdr@{lccd\-::\-Xdr}}
\subsubsection[{fromstream}]{\setlength{\rightskip}{0pt plus 5cm}template$&lt;$class T $&gt;$ static unsigned lccd\-::\-Xdr\-::fromstream (
\begin{DoxyParamCaption}
\item[{const std\-::string \&amp;}]{s, }
\item[{unsigned}]{position, }
\item[{T $\ast$}]{t, }
\item[{unsigned}]{count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}\label{classlccd_1_1Xdr_a638f17afb3af3b3919e48ebebde0ea70}


Read count objects of (simple) type t from the string/stream s at position. 

\par
 Callers have to keep the current position within the string.

\begin{DoxyReturn}{Returns}
the new position in the stream. 
\end{DoxyReturn}


References copy().

\index{lccd\-::\-Xdr@{lccd\-::\-Xdr}!fromstream@{fromstream}}
\index{fromstream@{fromstream}!lccd::Xdr@{lccd\-::\-Xdr}}
\subsubsection[{fromstream}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned lccd\-::\-Xdr\-::fromstream (
\begin{DoxyParamCaption}
\item[{const std\-::string \&amp;}]{s, }
\item[{unsigned}]{index, }
\item[{std\-::string $\ast$}]{str\-Val, }
\item[{unsigned}]{count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}\label{classlccd_1_1Xdr_a3da64198cab3e098d7419a2a2a58799b}


Specialization for strings -\/ count is ignored and taken to be 1. 

\begin{DoxyReturn}{Returns}
the new position in the stream. 
\end{DoxyReturn}


References copy().



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Xdr.\-hh\end{DoxyCompactItemize}
</pre></body></html>