\hypertarget{a08556}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+M\+Writer\+\_\+ Class Reference}
\label{a08556}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/writer/\+O\+M\+Writer.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+M\+Writer\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08556}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08556_a124124ec1cf547f34f7f07c3c5345267}\label{a08556_a124124ec1cf547f34f7f07c3c5345267}} 
\hyperlink{a08556_a124124ec1cf547f34f7f07c3c5345267}{\+\_\+\+O\+M\+Writer\+\_\+} ()
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08556_ae824f4266ba7a3230c483f10c90b2c22}\label{a08556_ae824f4266ba7a3230c483f10c90b2c22}} 
virtual \hyperlink{a08556_ae824f4266ba7a3230c483f10c90b2c22}{$\sim$\+\_\+\+O\+M\+Writer\+\_\+} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08556_a8db717904900634a827fe1331c0b962a}\label{a08556_a8db717904900634a827fe1331c0b962a}} 
std\+::string \hyperlink{a08556_a8db717904900634a827fe1331c0b962a}{get\+\_\+description} () const
\begin{DoxyCompactList}\small\item\em Return short description of the supported file format. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08556_a20e00c174bfdad416c7ba580ea407bc5}\label{a08556_a20e00c174bfdad416c7ba580ea407bc5}} 
std\+::string \hyperlink{a08556_a20e00c174bfdad416c7ba580ea407bc5}{get\+\_\+extensions} () const
\begin{DoxyCompactList}\small\item\em Return file format\textquotesingle{}s extension. \end{DoxyCompactList}\item 
bool \hyperlink{a08556_a3efe93376254bb15124c3c14922e5d64}{write} (std\+::ostream \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
\mbox{\Hypertarget{a08556_ad41895c4a359a9829de5c5414c06c5d1}\label{a08556_ad41895c4a359a9829de5c5414c06c5d1}} 
size\+\_\+t \hyperlink{a08556_ad41895c4a359a9829de5c5414c06c5d1}{binary\+\_\+size} (\hyperlink{a08460}{Base\+Exporter} \&\+\_\+be, \hyperlink{a08480}{Options} \+\_\+opt) const
\begin{DoxyCompactList}\small\item\em Returns expected size of file if binary format is supported else 0. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08556_abca06fbd89e87d8a916fea83f6946e3e}\label{a08556_abca06fbd89e87d8a916fea83f6946e3e}} 
static O\+M\+Format\+::uint8 {\bfseries get\+\_\+version} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a08556_a096575651a73596687e6b35132474b29}{write} (const std\+::string \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
\mbox{\Hypertarget{a08556_a3af94cce280d8d2f5c29fcdfaaf07bec}\label{a08556_a3af94cce280d8d2f5c29fcdfaaf07bec}} 
bool {\bfseries write\+\_\+binary} (std\+::ostream \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}) const
\item 
\mbox{\Hypertarget{a08556_afb4da2e614e0b1ee2d177b4fcdc9b92f}\label{a08556_afb4da2e614e0b1ee2d177b4fcdc9b92f}} 
size\+\_\+t {\bfseries store\+\_\+binary\+\_\+custom\+\_\+chunk} (std\+::ostream \&, const \hyperlink{a08824}{Base\+Property} \&, O\+M\+Format\+::\+Chunk\+::\+Entity, bool) const
\end{DoxyCompactItemize}
\subsection*{Static Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08556_a3f4bc815e89b32cc09b9756edf6bccc5}\label{a08556_a3f4bc815e89b32cc09b9756edf6bccc5}} 
static const O\+M\+Format\+::uchar {\bfseries magic\+\_\+} \mbox{[}3\mbox{]} = \char`\"{}OM\char`\"{}
\item 
\mbox{\Hypertarget{a08556_abb0a3ed12b0bc77e63e6e9e5c91cd90b}\label{a08556_abb0a3ed12b0bc77e63e6e9e5c91cd90b}} 
static const O\+M\+Format\+::uint8 {\bfseries version\+\_\+} = O\+M\+Format\+::mk\+\_\+version(2,0)
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the OM format writer. This class is singleton\textquotesingle{}ed by \hyperlink{a08912}{SingletonT} to O\+M\+Writer. 

Definition at line 91 of file O\+M\+Writer.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08556_a3efe93376254bb15124c3c14922e5d64}\label{a08556_a3efe93376254bb15124c3c14922e5d64}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+\+::write (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{\+\_\+os,  }\item[{\hyperlink{a08460}{Base\+Exporter} \&}]{\+\_\+be,  }\item[{\hyperlink{a08480}{Options}}]{\+\_\+opt,  }\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

Write to a std\+::ostream 
\begin{DoxyParams}{Parameters}
{\em \+\_\+os} & write to std\+::ostream \\
\hline
{\em \+\_\+be} & \hyperlink{a08460}{Base\+Exporter}, which specifies the data source \\
\hline
{\em \+\_\+opt} & writing options \\
\hline
{\em \+\_\+precision} & can be used to specify the precision of the floating point notation. \\
\hline
\end{DoxyParams}


Implements \hyperlink{a08544_ae0aa2050e93f96d71ff70ce788a76a94}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 131 of file O\+M\+Writer.\+cc.

\mbox{\Hypertarget{a08556_a096575651a73596687e6b35132474b29}\label{a08556_a096575651a73596687e6b35132474b29}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+M\+Writer\+\_\+\+::write (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+filename,  }\item[{\hyperlink{a08460}{Base\+Exporter} \&}]{\+\_\+be,  }\item[{\hyperlink{a08480}{Options}}]{\+\_\+opt,  }\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}

Write to a file 
\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & write to file with the given filename \\
\hline
{\em \+\_\+be} & \hyperlink{a08460}{Base\+Exporter}, which specifies the data source \\
\hline
{\em \+\_\+opt} & writing options \\
\hline
{\em \+\_\+precision} & can be used to specify the precision of the floating point notation. \\
\hline
\end{DoxyParams}


Implements \hyperlink{a08544_a7c0818a63926bdb439044a8f4c038d85}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 95 of file O\+M\+Writer.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/writer/O\+M\+Writer.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/writer/O\+M\+Writer.\+cc\end{DoxyCompactItemize}
