WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
WXP::RcmFile Class Reference

This class manages RCM (Radar Coded Messages) data files. More...

#include "../include/RcmFile.h"

Public Types

enum  Type { UNK , RAW , WXP , NETCDF }
 

Public Member Functions

 RcmFile ()
 
 RcmFile (const char *filename)
 
 RcmFile (Filename &filename)
 
 ~RcmFile ()
 
int init ()
 
int open (const char *filename, int raccess, int rtype)
 
int open (const char *filename)
 
int open (Filename &filename, int raccess, int rtype)
 
int open (Filename &filename)
 
int close ()
 
bool isOpen ()
 
int setDate (Date &rdate)
 
int getDate (Date &rdate)
 
int decode (RcmRawData &raw, RcmData &data)
 
int read (Image &image)
 
int read (RcmRawData &data)
 
int read (RcmData &data)
 
int write (Image &image)
 
int write (RcmData &data)
 

Detailed Description

This class manages RCM (Radar Coded Messages) data files.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ RcmFile() [1/2]

RcmFile::RcmFile ( )

Constructor. Initializes class

◆ RcmFile() [2/2]

RcmFile::RcmFile ( const char *  filename)

Constructor. Initializes and opens file

Parameters
filenameOpens this file

◆ ~RcmFile()

RcmFile::~RcmFile ( )

Destructor. Closes file

References close().

Member Function Documentation

◆ close()

int RcmFile::close ( )

Closes the file

References WXP::File::close().

Referenced by ~RcmFile().

◆ decode()

int RcmFile::decode ( RcmRawData raw,
RcmData data 
)

◆ open()

int RcmFile::open ( const char *  filename)

Closes the file Opens the file

Parameters
filenameThe file to open

References WXP::FileAttr::READ.

◆ read() [1/2]

int RcmFile::read ( RcmData data)

Reads in and decodes the RCM data

Return values
dataThe output decoded data

References decode().

◆ read() [2/2]

int RcmFile::read ( RcmRawData data)

Reads in the raw RCM product and puts it into a buffer

Return values
dataThe output raw data

References WXP::RcmRawData::data, WXP::File::endFile(), WXP::File::getLine(), WXP::RcmRawData::id, WXP::StrLib::iequal(), WXP::RcmRawData::len, and WXP::StrLib::trimWS().


The documentation for this class was generated from the following files: