WXP C++ Library Version 6.74.9
|
This class reads in upper air data from a input raw data file from file. Used by decoder. More...
#include "../include/UpaWmoFile.h"
Public Types | |
enum | Type { UNK , WXP , LDM } |
Public Member Functions | |
UpaWmoFile () | |
UpaWmoFile (const char *filename) | |
~UpaWmoFile () | |
int | init () |
bool | isOpen () |
int | open (const char *filename) |
int | open (Filename &filename) |
int | rewind () |
int | close () |
int | setDate (Date &rdate) |
int | getDate (Date &rdate) |
int | read (UpaWmoData &data) |
Static Public Member Functions | |
static int | checkType (const char *filename) |
This class reads in upper air data from a input raw data file from file. Used by decoder.
UpaWmoFile::UpaWmoFile | ( | ) |
Constructor
UpaWmoFile::UpaWmoFile | ( | const char * | filename | ) |
UpaWmoFile::~UpaWmoFile | ( | ) |
Destructor
|
static |
Checks the type of data in the file
filename | File to check |
References WXP::File::isOpen(), and WXP::File::scanf().
int UpaWmoFile::close | ( | ) |
Closes the surface data file
int UpaWmoFile::getDate | ( | Date & | rdate | ) |
Gets the date of the file
rdate | Date class to put date information |
int UpaWmoFile::open | ( | const char * | filename | ) |
Opens the raw upper air data file
filename | File to open |
References WXP::File::isOpen(), and WXP::File::open().
Referenced by WXP::UpaDecode::decode(), and UpaWmoFile().
int UpaWmoFile::read | ( | UpaWmoData & | data | ) |
Reads a single report/station from the data file
data | UpaData class to put the data from the file |
References WXP::Date::adjustHour(), WXP::StrLib::append(), WXP::StrLib::copy(), WXP::StrLib::equal(), WXP::StrLib::getChar(), WXP::StrLib::isNum(), WXP::Wxp::outDebug(), WXP::StrLib::setChar(), and WXP::StrLib::trimWS().
Referenced by WXP::UpaDecode::decode().
int UpaWmoFile::rewind | ( | ) |
Rewinds the surface data file