\hypertarget{class_ogre_1_1_serializer}{}\section{Ogre\+:\+:Serializer Class Reference}
\label{class_ogre_1_1_serializer}\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}


Generic class for serialising data to / from binary stream-\/based files.  




{\ttfamily \#include $<$Ogre\+Serializer.\+h$>$}



Inheritance diagram for Ogre\+:\+:Serializer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_serializer__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian} \{ \hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}, 
\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}{E\+N\+D\+I\+A\+N\+\_\+\+B\+IG}, 
\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}{E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE}
 \}\begin{DoxyCompactList}\small\item\em The endianness of written files. \end{DoxyCompactList}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_serializer_a3268ab522d56e98d88b604255b0f43d4}{Serializer} ()
\item 
\hyperlink{class_ogre_1_1_serializer_a6e038a802f8d1f293e73b4d98f6e297d}{$\sim$\+Serializer} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Generic class for serialising data to / from binary stream-\/based files. 

\begin{DoxyRemark}{Remarks}
This class provides a number of useful methods for exporting / importing data from stream-\/oriented binary files (e.\+g. .mesh and .skeleton). 
\end{DoxyRemark}


\subsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}} 
\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!Endian@{Endian}}
\index{Endian@{Endian}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}
\subsubsection{\texorpdfstring{Endian}{Endian}}
{\footnotesize\ttfamily enum \hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Ogre\+::\+Serializer\+::\+Endian}}



The endianness of written files. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE@{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE@{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}} 
E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE&Use the platform native endian. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{E\+N\+D\+I\+A\+N\+\_\+\+B\+IG@{E\+N\+D\+I\+A\+N\+\_\+\+B\+IG}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!E\+N\+D\+I\+A\+N\+\_\+\+B\+IG@{E\+N\+D\+I\+A\+N\+\_\+\+B\+IG}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}} 
E\+N\+D\+I\+A\+N\+\_\+\+B\+IG&Use big endian (0x1000 is serialised as 0x10 0x00) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE@{E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE@{E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}} 
E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE&Use little endian (0x1000 is serialised as 0x00 0x10) \\
\hline

\end{DoxyEnumFields}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_serializer_a3268ab522d56e98d88b604255b0f43d4}\label{class_ogre_1_1_serializer_a3268ab522d56e98d88b604255b0f43d4}} 
\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!Serializer@{Serializer}}
\index{Serializer@{Serializer}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}
\subsubsection{\texorpdfstring{Serializer()}{Serializer()}}
{\footnotesize\ttfamily Ogre\+::\+Serializer\+::\+Serializer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_serializer_a6e038a802f8d1f293e73b4d98f6e297d}\label{class_ogre_1_1_serializer_a6e038a802f8d1f293e73b4d98f6e297d}} 
\index{Ogre\+::\+Serializer@{Ogre\+::\+Serializer}!````~Serializer@{$\sim$\+Serializer}}
\index{````~Serializer@{$\sim$\+Serializer}!Ogre\+::\+Serializer@{Ogre\+::\+Serializer}}
\subsubsection{\texorpdfstring{$\sim$\+Serializer()}{~Serializer()}}
{\footnotesize\ttfamily Ogre\+::\+Serializer\+::$\sim$\+Serializer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_serializer_8h}{Ogre\+Serializer.\+h}\end{DoxyCompactItemize}
