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

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)
 

Detailed Description

This class reads in upper air data from a input raw data file from file. Used by decoder.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ UpaWmoFile() [1/2]

UpaWmoFile::UpaWmoFile ( )

Constructor

◆ UpaWmoFile() [2/2]

UpaWmoFile::UpaWmoFile ( const char *  filename)

Constructor. Opens the upper air raw data file

Parameters
filenameFile to open

References open().

◆ ~UpaWmoFile()

UpaWmoFile::~UpaWmoFile ( )

Destructor

Member Function Documentation

◆ checkType()

int UpaWmoFile::checkType ( const char *  filename)
static

Checks the type of data in the file

Parameters
filenameFile to check

References WXP::File::isOpen(), and WXP::File::scanf().

◆ close()

int UpaWmoFile::close ( )

Closes the surface data file

◆ getDate()

int UpaWmoFile::getDate ( Date rdate)

Gets the date of the file

Return values
rdateDate class to put date information

◆ open()

int UpaWmoFile::open ( const char *  filename)

Opens the raw upper air data file

Parameters
filenameFile to open

References WXP::File::isOpen(), and WXP::File::open().

Referenced by WXP::UpaDecode::decode(), and UpaWmoFile().

◆ read()

int UpaWmoFile::read ( UpaWmoData data)

Reads a single report/station from the data file

Return values
dataUpaData 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().

◆ rewind()

int UpaWmoFile::rewind ( )

Rewinds the surface data file


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