\section{gear\-:\-:Ti\-Xml\-Declaration Class Reference}
\label{classgear_1_1TiXmlDeclaration}\index{gear\-::\-Ti\-Xml\-Declaration@{gear\-::\-Ti\-Xml\-Declaration}}


In correct X\-M\-L the declaration is the first entry in the file.  




{\ttfamily \#include $<$tinyxml.\-h$>$}

Inheritance diagram for gear\-:\-:Ti\-Xml\-Declaration\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classgear_1_1TiXmlDeclaration}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Ti\-Xml\-Declaration} ()\label{classgear_1_1TiXmlDeclaration_a05b0054d40cf3a3ed3632a24203ca287}

\begin{DoxyCompactList}\small\item\em Construct an empty declaration. \end{DoxyCompactList}\item 
{\bf Ti\-Xml\-Declaration} (const std\-::string \&\-\_\-version, const std\-::string \&\-\_\-encoding, const std\-::string \&\-\_\-standalone)\label{classgear_1_1TiXmlDeclaration_ac22caaeb07b33b19871ab173ad7bfb30}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
{\bf Ti\-Xml\-Declaration} (const char $\ast$\-\_\-version, const char $\ast$\-\_\-encoding, const char $\ast$\-\_\-standalone)\label{classgear_1_1TiXmlDeclaration_ac85b88452dbd04b1cd393910aa77a4a6}

\begin{DoxyCompactList}\small\item\em Construct. \end{DoxyCompactList}\item 
{\bfseries Ti\-Xml\-Declaration} (const {\bf Ti\-Xml\-Declaration} \&copy)\label{classgear_1_1TiXmlDeclaration_a79e0203b2f92d535c4e50e40c4520873}

\item 
void {\bfseries operator=} (const {\bf Ti\-Xml\-Declaration} \&copy)\label{classgear_1_1TiXmlDeclaration_a9b7d4ea98403c32b45a9ed9c8da9d735}

\item 
const char $\ast$ {\bf Version} () const \label{classgear_1_1TiXmlDeclaration_a94f4395ad8f85700464032ade7f91342}

\begin{DoxyCompactList}\small\item\em Version. Will return an empty string if none was found. \end{DoxyCompactList}\item 
const char $\ast$ {\bf Encoding} () const \label{classgear_1_1TiXmlDeclaration_a6a9c44c78d3e9f3f2991fcdf41bf5c62}

\begin{DoxyCompactList}\small\item\em Encoding. Will return an empty string if none was found. \end{DoxyCompactList}\item 
const char $\ast$ {\bf Standalone} () const \label{classgear_1_1TiXmlDeclaration_a21eb9ebc6acb7e0088d9148dc20db888}

\begin{DoxyCompactList}\small\item\em Is this a standalone document? \end{DoxyCompactList}\item 
virtual {\bf Ti\-Xml\-Node} $\ast$ {\bf Clone} () const \label{classgear_1_1TiXmlDeclaration_a20bab4675f1fb2c0b830c7581db9e154}

\begin{DoxyCompactList}\small\item\em Creates a copy of this Declaration and returns it. \end{DoxyCompactList}\item 
virtual void {\bf Print} (F\-I\-L\-E $\ast$cfile, int depth) const \label{classgear_1_1TiXmlDeclaration_a63d3842e3a09bbac7d14ea08fbe916be}

\begin{DoxyCompactList}\small\item\em Print this declaration to a F\-I\-L\-E stream. \end{DoxyCompactList}\item 
virtual const char $\ast$ {\bfseries Parse} (const char $\ast$p, {\bf Ti\-Xml\-Parsing\-Data} $\ast$data, Ti\-Xml\-Encoding encoding)\label{classgear_1_1TiXmlDeclaration_a759b8e977b969f381a4ab589a9902fff}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries Copy\-To} ({\bf Ti\-Xml\-Declaration} $\ast$target) const \label{classgear_1_1TiXmlDeclaration_aacc3def14a41da7f5f983cdf216aa07d}

\item 
virtual void {\bfseries Stream\-In} (T\-I\-X\-M\-L\-\_\-\-I\-S\-T\-R\-E\-A\-M $\ast$in, T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G $\ast$tag)\label{classgear_1_1TiXmlDeclaration_ab8a84c69091b058666793f925c34aeb5}

\item 
virtual void {\bfseries Stream\-Out} (T\-I\-X\-M\-L\-\_\-\-O\-S\-T\-R\-E\-A\-M $\ast$out) const \label{classgear_1_1TiXmlDeclaration_aaee4bf7e2e95c2e6b543734e4c0e44e5}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
In correct X\-M\-L the declaration is the first entry in the file. 

\begin{DoxyVerb}        <?xml version="1.0" standalone="yes"?>\end{DoxyVerb}


Tiny\-Xml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration\-: version, encoding, and standalone.

Note\-: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same. 

Definition at line 1059 of file tinyxml.\-h.



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
tinyxml.\-h\item 
tinyxml.\-cc\item 
tinyxmlparser.\-cc\end{DoxyCompactItemize}
