\hypertarget{create_8c}{
\section{create.c File Reference}
\label{create_8c}\index{create.c@{create.c}}
}
Functions that create binary configuration files. 

{\tt \#include \char`\"{}create.h\char`\"{}}\par
{\tt \#include \char`\"{}fo\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}error.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/MBA.h\char`\"{}}\par
{\tt \#include \char`\"{}RIM/lrd.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par


Include dependency graph for create.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=204pt]{create_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{create_8c_a0}{create\-File} (RIM $\ast$rim, RIM\_\-type type, const char $\ast$filename)
\begin{CompactList}\small\item\em Create a single binary configuration file containing the data of one component (or the default data). \item\end{CompactList}\item 
unsigned \hyperlink{create_8c_a1}{QCFG\_\-create\-Map} (RIM\_\-map $\ast$map, const char $\ast$filename)
\begin{CompactList}\small\item\em Write out the data of a LATC\_\-map structure. \item\end{CompactList}\item 
unsigned \hyperlink{create_8c_a2}{QCFG\_\-create} (RIM $\ast$rim, unsigned filter, const char $\ast$stub)
\begin{CompactList}\small\item\em Creates a set of binary configuration files based on the contents of the {\em imm\/}, using {\em lcm\/} as the first in a sequence of file IDs. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Functions that create binary configuration files. 

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


\subsection{Function Documentation}
\hypertarget{create_8c_a0}{
\index{create.c@{create.c}!createFile@{createFile}}
\index{createFile@{createFile}!create.c@{create.c}}
\subsubsection[createFile]{\setlength{\rightskip}{0pt plus 5cm}unsigned create\-File (RIM $\ast$ {\em rim}, RIM\_\-type {\em type}, const char $\ast$ {\em filename})}}
\label{create_8c_a0}


Create a single binary configuration file containing the data of one component (or the default data). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rim}]RIM structure used as the basis of the binary configuration \item[{\em type}]Component type to write out \item[{\em filename}]Name to use for this file \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em RIM\_\-SUCCESS}]if all goes well \item[{\em RIM\_\-FILE\_\-WRITE}]if one of the file write operations failed \item[{\em RIM\_\-MAP\_\-NONE}]if the selected type is not written seperately \item[{\em RIM\_\-CPT\_\-NONE}]if the selected type has not data specified\end{description}
\end{Desc}
\hypertarget{create_8c_a2}{
\index{create.c@{create.c}!QCFG_create@{QCFG\_\-create}}
\index{QCFG_create@{QCFG\_\-create}!create.c@{create.c}}
\subsubsection[QCFG\_\-create]{\setlength{\rightskip}{0pt plus 5cm}unsigned QCFG\_\-create (RIM $\ast$ {\em rim}, unsigned {\em filter}, const char $\ast$ {\em stub})}}
\label{create_8c_a2}


Creates a set of binary configuration files based on the contents of the {\em imm\/}, using {\em lcm\/} as the first in a sequence of file IDs. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rim}]RIMstructure used as the basis of the binary configuration \item[{\em stub}]Stub to use as a basis for the output filenames \item[{\em filter}]Bitmask of LAT component files to create \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em RIM\_\-SUCCESS}]if all goes well \item[{\em RIM\_\-FILE\_\-WRITE}]if one of the file write operations failed \item[{\em RIM\_\-FILE\_\-CLOSE}]if one of the files failed to close\end{description}
\end{Desc}
\hypertarget{create_8c_a1}{
\index{create.c@{create.c}!QCFG_createMap@{QCFG\_\-createMap}}
\index{QCFG_createMap@{QCFG\_\-createMap}!create.c@{create.c}}
\subsubsection[QCFG\_\-createMap]{\setlength{\rightskip}{0pt plus 5cm}unsigned QCFG\_\-create\-Map (RIM\_\-map $\ast$ {\em map}, const char $\ast$ {\em filename})}}
\label{create_8c_a1}


Write out the data of a LATC\_\-map structure. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]Pointer to the LATC\_\-map whose data should be written to file \item[{\em filename}]Name of the destination file \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em RIM\_\-SUCCESS}]if all goes well \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\end{description}
\end{Desc}
