\hypertarget{parse_8h}{
\section{parse.h File Reference}
\label{parse_8h}\index{parse.h@{parse.h}}
}
Interface to XML parser. 

{\tt \#include \char`\"{}XLX/state.h\char`\"{}}\par


Include dependency graph for parse.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=155pt]{parse_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=87pt]{parse_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{parse_8h_a0}{
typedef void($\ast$ \hyperlink{parse_8h_a0}{XLX\_\-p\-Start} )(void $\ast$, const char $\ast$, const char $\ast$$\ast$)}
\label{parse_8h_a0}

\begin{CompactList}\small\item\em EXPAT callback for a start tag. \item\end{CompactList}\item 
\hypertarget{parse_8h_a1}{
typedef void($\ast$ \hyperlink{parse_8h_a1}{XLX\_\-p\-End} )(void $\ast$, const char $\ast$)}
\label{parse_8h_a1}

\begin{CompactList}\small\item\em EXPAT callback for an end tag. \item\end{CompactList}\item 
\hypertarget{parse_8h_a2}{
typedef void($\ast$ \hyperlink{parse_8h_a2}{XLX\_\-p\-Char} )(void $\ast$, const char $\ast$, int)}
\label{parse_8h_a2}

\begin{CompactList}\small\item\em EXPAT callback for a character element. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{parse_8h_a3}{XLX\_\-parse} (const char $\ast$filename, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$p\-State)
\begin{CompactList}\small\item\em Parses {\em filename\/}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Interface to XML parser. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\end{Desc}
history : 12 Nov 2004 : Added history block

\subsection{Function Documentation}
\hypertarget{parse_8h_a3}{
\index{parse.h@{parse.h}!XLX_parse@{XLX\_\-parse}}
\index{XLX_parse@{XLX\_\-parse}!parse.h@{parse.h}}
\subsubsection[XLX\_\-parse]{\setlength{\rightskip}{0pt plus 5cm}unsigned XLX\_\-parse (const char $\ast$ {\em filename}, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$ {\em p\-State})}}
\label{parse_8h_a3}


Parses {\em filename\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filename}]XML file to parse \item[{\em p\-State}]State of the parser. \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]If the file is successfully parsed \item[{\em -1}]If the file cannot be opened \item[{\em -1}]If there is an error creating the parser control structure \item[{\em -1}]If there is an error reading the file \item[{\em -1}]If there is an error parsing the XML\end{description}
\end{Desc}
