\section{GRIB\_\-FILE Class Reference}
\label{classGRIB__FILE}\index{GRIB_FILE@{GRIB\_\-FILE}}
GRIB level 1 file. 


{\tt \#include $<$GRIB.h$>$}

\subsection*{Public Methods}
\begin{CompactItemize}
\item 
{\bf GRIB\_\-FILE} ()
\begin{CompactList}\small\item\em Constructor.\item\end{CompactList}\item 
{\bf $\sim$GRIB\_\-FILE} ()
\begin{CompactList}\small\item\em Destructor.\item\end{CompactList}\item 
int {\bf Open\-Read} (char $\ast$fname)
\begin{CompactList}\small\item\em Open grib file for read param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Open\-Read} (std::string fname)
\begin{CompactList}\small\item\em Open grib file for read param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Open\-Write} (char $\ast$fname)
\begin{CompactList}\small\item\em Open grib file for write. File is truncated param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Open\-Write} (std::string fname)
\begin{CompactList}\small\item\em Open grib file for write. File is truncated param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Append} (char $\ast$fname)
\begin{CompactList}\small\item\em Open grib file for append param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Append} (std::string fname)
\begin{CompactList}\small\item\em Open grib file for append param fname: file name with full path.\item\end{CompactList}\item 
int {\bf Read\-Message} ({\bf GRIB\_\-MESSAGE} \&message)
\begin{CompactList}\small\item\em Read message from file.\item\end{CompactList}\item 
int {\bf Write\-Message} ({\bf GRIB\_\-MESSAGE} \&message)
\begin{CompactList}\small\item\em Write message to file.\item\end{CompactList}\item 
int {\bf Close} ()
\begin{CompactList}\small\item\em Close previously opened file.\item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
GRIB level 1 file.



Definition at line 1092 of file GRIB.h.

\subsection{Constructor \& Destructor Documentation}
\index{GRIB_FILE@{GRIB\_\-FILE}!GRIB_FILE@{GRIB\_\-FILE}}
\index{GRIB_FILE@{GRIB\_\-FILE}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}GRIB\_\-FILE::GRIB\_\-FILE ()}\label{classGRIB__FILE_a0}


Constructor.



Definition at line 1969 of file GRIB.cpp.\index{GRIB_FILE@{GRIB\_\-FILE}!~GRIB_FILE@{$\sim$GRIB\_\-FILE}}
\index{~GRIB_FILE@{$\sim$GRIB\_\-FILE}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}GRIB\_\-FILE::$\sim$GRIB\_\-FILE ()}\label{classGRIB__FILE_a1}


Destructor.



Definition at line 2059 of file GRIB.cpp.

References Close().

\subsection{Member Function Documentation}
\index{GRIB_FILE@{GRIB\_\-FILE}!Append@{Append}}
\index{Append@{Append}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Append (std::string {\em fname})}\label{classGRIB__FILE_a7}


Open grib file for append param fname: file name with full path.



Definition at line 2042 of file GRIB.cpp.

References Append().\index{GRIB_FILE@{GRIB\_\-FILE}!Append@{Append}}
\index{Append@{Append}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Append (char $\ast$ {\em fname})}\label{classGRIB__FILE_a6}


Open grib file for append param fname: file name with full path.



Definition at line 2030 of file GRIB.cpp.

Referenced by Append().\index{GRIB_FILE@{GRIB\_\-FILE}!Close@{Close}}
\index{Close@{Close}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Close ()}\label{classGRIB__FILE_a10}


Close previously opened file.



Definition at line 2047 of file GRIB.cpp.

Referenced by $\sim$GRIB\_\-FILE().\index{GRIB_FILE@{GRIB\_\-FILE}!OpenRead@{OpenRead}}
\index{OpenRead@{OpenRead}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Open\-Read (std::string {\em fname})}\label{classGRIB__FILE_a3}


Open grib file for read param fname: file name with full path.



Definition at line 2008 of file GRIB.cpp.

References Open\-Read().\index{GRIB_FILE@{GRIB\_\-FILE}!OpenRead@{OpenRead}}
\index{OpenRead@{OpenRead}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Open\-Read (char $\ast$ {\em fname})}\label{classGRIB__FILE_a2}


Open grib file for read param fname: file name with full path.



Definition at line 1978 of file GRIB.cpp.

Referenced by Open\-Read().\index{GRIB_FILE@{GRIB\_\-FILE}!OpenWrite@{OpenWrite}}
\index{OpenWrite@{OpenWrite}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Open\-Write (std::string {\em fname})}\label{classGRIB__FILE_a5}


Open grib file for write. File is truncated param fname: file name with full path.



Definition at line 2025 of file GRIB.cpp.

References Open\-Write().\index{GRIB_FILE@{GRIB\_\-FILE}!OpenWrite@{OpenWrite}}
\index{OpenWrite@{OpenWrite}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Open\-Write (char $\ast$ {\em fname})}\label{classGRIB__FILE_a4}


Open grib file for write. File is truncated param fname: file name with full path.



Definition at line 2013 of file GRIB.cpp.

Referenced by Open\-Write().\index{GRIB_FILE@{GRIB\_\-FILE}!ReadMessage@{ReadMessage}}
\index{ReadMessage@{ReadMessage}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Read\-Message ({\bf GRIB\_\-MESSAGE} \& {\em message})}\label{classGRIB__FILE_a8}


Read message from file.

\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
message:}]Output decoded message \end{description}
\end{Desc}


Definition at line 2061 of file GRIB.cpp.

References GRIB\_\-MESSAGE::Decode().\index{GRIB_FILE@{GRIB\_\-FILE}!WriteMessage@{WriteMessage}}
\index{WriteMessage@{WriteMessage}!GRIB_FILE@{GRIB\_\-FILE}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int GRIB\_\-FILE::Write\-Message ({\bf GRIB\_\-MESSAGE} \& {\em message})}\label{classGRIB__FILE_a9}


Write message to file.

\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
message:}]Input decoded message \end{description}
\end{Desc}


Definition at line 2097 of file GRIB.cpp.

References GRIB\_\-MESSAGE::Encode(), GRIB\_\-MESSAGE::message, and GRIB\_\-MESSAGE::reclen.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
{\bf GRIB.h}\item 
{\bf GRIB.cpp}\end{CompactItemize}
