\section{Ti\-Xml\-Text Class Reference}
\label{classTiXmlText}\index{Ti\-Xml\-Text@{Ti\-Xml\-Text}}


X\-M\-L text.  




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

Inheritance diagram for Ti\-Xml\-Text\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classTiXmlText}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Ti\-Xml\-Text} (const char $\ast$init\-Value)
\begin{DoxyCompactList}\small\item\em Constructor for text element. \end{DoxyCompactList}\item 
{\bf Ti\-Xml\-Text} (const std\-::string \&init\-Value)\label{classTiXmlText_a439792f6183a3d3fb6f2bc2b16fa5691}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
{\bfseries Ti\-Xml\-Text} (const {\bf Ti\-Xml\-Text} \&copy)\label{classTiXmlText_a8d2cc1b4af2208cbb0171cf20f6815d1}

\item 
void {\bfseries operator=} (const {\bf Ti\-Xml\-Text} \&base)\label{classTiXmlText_af5f15d40d048cea7cab9d0eb4fd8a7d2}

\item 
virtual void {\bf Print} (F\-I\-L\-E $\ast$cfile, int depth) const 
\begin{DoxyCompactList}\small\item\em All Tiny\-Xml classes can print themselves to a filestream or the string class (\doxyref{Ti\-Xml\-String}{p.}{classTiXmlString} in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. \end{DoxyCompactList}\item 
bool {\bf C\-D\-A\-T\-A} () const \label{classTiXmlText_ad1a6a6b83fa2271022dd97c072a2b586}

\begin{DoxyCompactList}\small\item\em Queries whether this represents text using a C\-D\-A\-T\-A section. \end{DoxyCompactList}\item 
void {\bf Set\-C\-D\-A\-T\-A} (bool \-\_\-cdata)\label{classTiXmlText_acb17ff7c5d09b2c839393445a3de5ea9}

\begin{DoxyCompactList}\small\item\em Turns on or off a C\-D\-A\-T\-A representation of text. \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{classTiXmlText_a8d2dcfa41fc73d3e62dacc2fcf633819}

\item 
virtual const {\bf Ti\-Xml\-Text} $\ast$ {\bf To\-Text} () const \label{classTiXmlText_a895bf34ffad17f7439ab2a52b9651648}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual {\bf Ti\-Xml\-Text} $\ast$ {\bf To\-Text} ()\label{classTiXmlText_ae7c3a8fd3e4dbf6c0c4363a943d72f5b}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual bool {\bf Accept} ({\bf Ti\-Xml\-Visitor} $\ast$content) const \label{classTiXmlText_a43b9954ebf679557fac1a4453f337b7c}

\begin{DoxyCompactList}\small\item\em Walk the X\-M\-L tree visiting this node and all of its children. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual {\bf Ti\-Xml\-Node} $\ast$ {\bf Clone} () const \label{classTiXmlText_adde1869dfb029be50713fbfd8ce4d21f}

\begin{DoxyCompactList}\small\item\em [internal use] Creates a new Element and returns it. \end{DoxyCompactList}\item 
void {\bfseries Copy\-To} ({\bf Ti\-Xml\-Text} $\ast$target) const \label{classTiXmlText_adcec7d9b6fccfc5777452bb97e6031c1}

\item 
bool {\bfseries Blank} () const \label{classTiXmlText_a1c120428e3b3cf24d79706e6d2b65aa6}

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

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class {\bfseries Ti\-Xml\-Element}\label{classTiXmlText_ab6592e32cb9132be517cc12a70564c4b}

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


\subsection{Detailed Description}
X\-M\-L text. 

A text node can have 2 ways to output the next. \char`\"{}normal\char`\"{} output and C\-D\-A\-T\-A. It will default to the mode it was parsed from the X\-M\-L file and you generally want to leave it alone, but you can change the output mode with \doxyref{Set\-C\-D\-A\-T\-A()}{p.}{classTiXmlText_acb17ff7c5d09b2c839393445a3de5ea9} and query it with \doxyref{C\-D\-A\-T\-A()}{p.}{classTiXmlText_ad1a6a6b83fa2271022dd97c072a2b586}. 

\subsection{Constructor \& Destructor Documentation}
\index{Ti\-Xml\-Text@{Ti\-Xml\-Text}!Ti\-Xml\-Text@{Ti\-Xml\-Text}}
\index{Ti\-Xml\-Text@{Ti\-Xml\-Text}!TiXmlText@{Ti\-Xml\-Text}}
\subsubsection[{Ti\-Xml\-Text}]{\setlength{\rightskip}{0pt plus 5cm}Ti\-Xml\-Text\-::\-Ti\-Xml\-Text (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{init\-Value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classTiXmlText_af659e77c6b87d684827f35a8f4895960}


Constructor for text element. 

By default, it is treated as normal, encoded text. If you want it be output as a C\-D\-A\-T\-A text element, set the parameter \-\_\-cdata to 'true' 

References Ti\-Xml\-Node\-::\-Set\-Value().



Referenced by Clone().



\subsection{Member Function Documentation}
\index{Ti\-Xml\-Text@{Ti\-Xml\-Text}!Print@{Print}}
\index{Print@{Print}!TiXmlText@{Ti\-Xml\-Text}}
\subsubsection[{Print}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Text\-::\-Print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classTiXmlText_ae74d56c5b3ddec6cc3103dd51821af92}


All Tiny\-Xml classes can print themselves to a filestream or the string class (\doxyref{Ti\-Xml\-String}{p.}{classTiXmlString} in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. 

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements {\bf Ti\-Xml\-Base} \doxyref{}{p.}{classTiXmlBase_a0de56b3f2ef14c65091a3b916437b512}.



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