\hypertarget{class_ti_xml_visitor}{\section{Ti\-Xml\-Visitor Class Reference}
\label{class_ti_xml_visitor}\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}}
}


Tiny\-X\-M\-L class. See \href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml}.  




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

Inheritance diagram for Ti\-Xml\-Visitor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_ti_xml_visitor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{class_ti_xml_visitor_a276c739ec4701f27c3f86b8ead095e5a}{$\sim$\-Ti\-Xml\-Visitor} ()
\item 
virtual bool \hyperlink{class_ti_xml_visitor_a07baecb52dd7d8716ae2a48ad0956ee0}{Visit\-Enter} (const \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} \&)
\begin{DoxyCompactList}\small\item\em Visit a document. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_aa0ade4f27087447e93974e975c3246ad}{Visit\-Exit} (const \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} \&)
\begin{DoxyCompactList}\small\item\em Visit a document. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_af6c6178ffa517bbdba95d70490875fff}{Visit\-Enter} (const \hyperlink{class_ti_xml_element}{Ti\-Xml\-Element} \&, const \hyperlink{class_ti_xml_attribute}{Ti\-Xml\-Attribute} $\ast$)
\begin{DoxyCompactList}\small\item\em Visit an element. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_aec2b1f8116226d52f3a1b95dafd3a32c}{Visit\-Exit} (const \hyperlink{class_ti_xml_element}{Ti\-Xml\-Element} \&)
\begin{DoxyCompactList}\small\item\em Visit an element. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_afad71c71ce6473fb9b4b64cd92de4a19}{Visit} (const \hyperlink{class_ti_xml_declaration}{Ti\-Xml\-Declaration} \&)
\begin{DoxyCompactList}\small\item\em Visit a declaration. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_a399b8ebca5cd14664974a32d2ce029e5}{Visit} (const \hyperlink{class_ti_xml_text}{Ti\-Xml\-Text} \&)
\begin{DoxyCompactList}\small\item\em Visit a text node. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_a53a60e7a528627b31af3161972cc7fa2}{Visit} (const \hyperlink{class_ti_xml_comment}{Ti\-Xml\-Comment} \&)
\begin{DoxyCompactList}\small\item\em Visit a comment node. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_visitor_a7e284d607d275c51dac1adb58159ce28}{Visit} (const \hyperlink{class_ti_xml_unknown}{Ti\-Xml\-Unknown} \&)
\begin{DoxyCompactList}\small\item\em Visit an unknow node. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Tiny\-X\-M\-L class. See \href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml}. 

If you call the Accept() method, it requires being passed a \hyperlink{class_ti_xml_visitor}{Ti\-Xml\-Visitor} class to handle callbacks. For nodes that contain other nodes (Document, Element) you will get called with a Visit\-Enter/\-Visit\-Exit pair. Nodes that are always leaves are simple called with \hyperlink{class_ti_xml_visitor_afad71c71ce6473fb9b4b64cd92de4a19}{Visit()}.

If you return 'true' from a Visit method, recursive parsing will continue. If you return false, {\bfseries no children of this node or its sibilings} will be Visited.

All flavors of Visit methods have a default implementation that returns 'true' (continue visiting). You need to only override methods that are interesting to you.

Generally Accept() is called on the \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document}, although all nodes suppert Visiting.

You should never change the document from a callback.

\begin{DoxySeeAlso}{See Also}
\hyperlink{class_ti_xml_node_acc0f88b7462c6cb73809d410a4f5bb86}{Ti\-Xml\-Node\-::\-Accept()}
\end{DoxySeeAlso}
See \begin{DoxySeeAlso}{See Also}
\href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml} 
\end{DoxySeeAlso}


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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_ti_xml_visitor_a276c739ec4701f27c3f86b8ead095e5a}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!$\sim$\-Ti\-Xml\-Visitor@{$\sim$\-Ti\-Xml\-Visitor}}
\index{$\sim$\-Ti\-Xml\-Visitor@{$\sim$\-Ti\-Xml\-Visitor}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{$\sim$\-Ti\-Xml\-Visitor}]{\setlength{\rightskip}{0pt plus 5cm}virtual Ti\-Xml\-Visitor\-::$\sim$\-Ti\-Xml\-Visitor (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_a276c739ec4701f27c3f86b8ead095e5a}


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



\subsection{Member Function Documentation}
\hypertarget{class_ti_xml_visitor_afad71c71ce6473fb9b4b64cd92de4a19}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Declaration} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_afad71c71ce6473fb9b4b64cd92de4a19}


Visit a declaration. 



Reimplemented in \hyperlink{class_ti_xml_printer_adaf7eec4dc43ad071ff52b60361574f5}{Ti\-Xml\-Printer}.



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



Referenced by Ti\-Xml\-Comment\-::\-Accept(), Ti\-Xml\-Text\-::\-Accept(), Ti\-Xml\-Declaration\-::\-Accept(), and Ti\-Xml\-Unknown\-::\-Accept().

\hypertarget{class_ti_xml_visitor_a399b8ebca5cd14664974a32d2ce029e5}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Text} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_a399b8ebca5cd14664974a32d2ce029e5}


Visit a text node. 



Reimplemented in \hyperlink{class_ti_xml_printer_a0857c5d32c59b9a257f9a49cb9411df5}{Ti\-Xml\-Printer}.



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

\hypertarget{class_ti_xml_visitor_a53a60e7a528627b31af3161972cc7fa2}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Comment} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_a53a60e7a528627b31af3161972cc7fa2}


Visit a comment node. 



Reimplemented in \hyperlink{class_ti_xml_printer_a9870423f5603630e6142f6bdb66dfb57}{Ti\-Xml\-Printer}.



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

\hypertarget{class_ti_xml_visitor_a7e284d607d275c51dac1adb58159ce28}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Unknown} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_a7e284d607d275c51dac1adb58159ce28}


Visit an unknow node. 



Reimplemented in \hyperlink{class_ti_xml_printer_a08591a15c9a07afa83c24e08b03d6358}{Ti\-Xml\-Printer}.



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

\hypertarget{class_ti_xml_visitor_a07baecb52dd7d8716ae2a48ad0956ee0}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit\-Enter@{Visit\-Enter}}
\index{Visit\-Enter@{Visit\-Enter}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit\-Enter}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit\-Enter (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Document} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_a07baecb52dd7d8716ae2a48ad0956ee0}


Visit a document. 



Reimplemented in \hyperlink{class_ti_xml_printer_a2ec73087db26ff4d2c4316c56f861db7}{Ti\-Xml\-Printer}.



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



Referenced by Ti\-Xml\-Element\-::\-Accept(), and Ti\-Xml\-Document\-::\-Accept().

\hypertarget{class_ti_xml_visitor_af6c6178ffa517bbdba95d70490875fff}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit\-Enter@{Visit\-Enter}}
\index{Visit\-Enter@{Visit\-Enter}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit\-Enter}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit\-Enter (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Element} \&}]{, }
\item[{const {\bf Ti\-Xml\-Attribute} $\ast$}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_af6c6178ffa517bbdba95d70490875fff}


Visit an element. 



Reimplemented in \hyperlink{class_ti_xml_printer_a6dccaf5ee4979f13877690afe28721e8}{Ti\-Xml\-Printer}.



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

\hypertarget{class_ti_xml_visitor_aa0ade4f27087447e93974e975c3246ad}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit\-Exit@{Visit\-Exit}}
\index{Visit\-Exit@{Visit\-Exit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit\-Exit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit\-Exit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Document} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_aa0ade4f27087447e93974e975c3246ad}


Visit a document. 



Reimplemented in \hyperlink{class_ti_xml_printer_a0a636046fa589b6d7f3e5bd025b3f33e}{Ti\-Xml\-Printer}.



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



Referenced by Ti\-Xml\-Element\-::\-Accept(), and Ti\-Xml\-Document\-::\-Accept().

\hypertarget{class_ti_xml_visitor_aec2b1f8116226d52f3a1b95dafd3a32c}{\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}!Visit\-Exit@{Visit\-Exit}}
\index{Visit\-Exit@{Visit\-Exit}!TiXmlVisitor@{Ti\-Xml\-Visitor}}
\subsubsection[{Visit\-Exit}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Ti\-Xml\-Visitor\-::\-Visit\-Exit (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Element} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_visitor_aec2b1f8116226d52f3a1b95dafd3a32c}


Visit an element. 



Reimplemented in \hyperlink{class_ti_xml_printer_ae6a1df8271df4bf62d7873c38e34aa69}{Ti\-Xml\-Printer}.



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



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/include/\-X\-M\-L/\hyperlink{tinyxml_8h}{tinyxml.\-h}\end{DoxyCompactItemize}
