\hypertarget{xml_8c}{
\section{xml.c File Reference}
\label{xml_8c}\index{xml.c@{xml.c}}
}
XML parser for the LATC pkg. 

{\tt \#include \char`\"{}xml.h\char`\"{}}\par
{\tt \#include \char`\"{}create.h\char`\"{}}\par
{\tt \#include \char`\"{}error.h\char`\"{}}\par
{\tt \#include \char`\"{}ctors\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}RIM/parser.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/MBA.h\char`\"{}}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par


Include dependency graph for xml.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=153pt]{xml_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{xml_8c_a0}{QCFG\_\-parse} (char $\ast$$\ast$filelist, unsigned filecount, const char $\ast$stub, unsigned filter, unsigned verb)
\begin{CompactList}\small\item\em Parse a set of XML files and spit out the binary configuration files. \item\end{CompactList}\item 
unsigned \hyperlink{xml_8c_a1}{QCFG\_\-parse\-Map} (char $\ast$$\ast$filelist, unsigned filecount, const char $\ast$outname, unsigned verb)
\begin{CompactList}\small\item\em Read XML describing a map of the LAT components and create the equivalent binary file. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
XML parser for the LATC pkg. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\end{Desc}


\subsection{Function Documentation}
\hypertarget{xml_8c_a0}{
\index{xml.c@{xml.c}!QCFG_parse@{QCFG\_\-parse}}
\index{QCFG_parse@{QCFG\_\-parse}!xml.c@{xml.c}}
\subsubsection[QCFG\_\-parse]{\setlength{\rightskip}{0pt plus 5cm}unsigned QCFG\_\-parse (char $\ast$$\ast$ {\em filelist}, unsigned {\em filecount}, const char $\ast$ {\em stub}, unsigned {\em filter}, unsigned {\em verb})}}
\label{xml_8c_a0}


Parse a set of XML files and spit out the binary configuration files. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filelist}]List of strings containing the names of XML files to parse \item[{\em filecount}]Number of XML files to parse \item[{\em stub}]Filename stub to use a basis for output filenames \item[{\em filter}]Bit mask of the components to create output files for \item[{\em verb}]1 for verbose, 0 for quiet \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em QCFG\_\-SUCCESS}]If all goes well \item[{\em QCFG\_\-MEM\_\-ALLOC}]If there is an error allocating memory \item[{\em RIM\_\-FILE\_\-WRITE}]if one of the file write operations failed \item[{\em RIM\_\-FILE\_\-OPEN}]if the file fails to open \item[{\em RIM\_\-FILE\_\-CLOSE}]if the file close failed \item[{\em RIM\_\-XML\_\-PARSE}]if there is an error parsing the XML\end{description}
\end{Desc}
\hypertarget{xml_8c_a1}{
\index{xml.c@{xml.c}!QCFG_parseMap@{QCFG\_\-parseMap}}
\index{QCFG_parseMap@{QCFG\_\-parseMap}!xml.c@{xml.c}}
\subsubsection[QCFG\_\-parseMap]{\setlength{\rightskip}{0pt plus 5cm}unsigned QCFG\_\-parse\-Map (char $\ast$$\ast$ {\em filelist}, unsigned {\em filecount}, const char $\ast$ {\em outname}, unsigned {\em verb})}}
\label{xml_8c_a1}


Read XML describing a map of the LAT components and create the equivalent binary file. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em QCFG\_\-SUCCESS}]if all goes well \item[{\em QCFG\_\-MEM\_\-ALLOC}]If there is an error allocating memory \item[{\em RIM\_\-FILE\_\-WRITE}]if writing to the file failed \item[{\em RIM\_\-FILE\_\-OPEN}]if the file fails to open \item[{\em RIM\_\-FILE\_\-CLOSE}]if the file close failed \item[{\em RIM\_\-XML\_\-PARSE}]if there is an error parsing the XML\end{description}
\end{Desc}
