| WXP C++ Library Version 6.74.9
    | 
This class reads in surface data from a Unisys formatted file from file. More...
#include "../include/SfcUniFile.h"
| Public Member Functions | |
| SfcUniFile () | |
| SfcUniFile (const char *filename) | |
| SfcUniFile (const char *filename, int access) | |
| ~SfcUniFile () | |
| bool | isOpen () | 
| int | open (const char *filename, int access) | 
| int | rewind () | 
| int | close () | 
| int | setDate (Date &rdate) | 
| int | getDate (Date &rdate) | 
| int | read (SfcData &data) | 
| int | write (SfcData &data) | 
| Static Public Member Functions | |
| static int | checkType (const char *filename) | 
This class reads in surface data from a Unisys formatted file from file.
| SfcUniFile::SfcUniFile | ( | ) | 
Constructor
| SfcUniFile::SfcUniFile | ( | const char * | filename | ) | 
Constructor. Opens the surface data file (access=READ, type=UNK)
| filename | File to open | 
References open(), and WXP::FileAttr::READ.
| SfcUniFile::SfcUniFile | ( | const char * | filename, | 
| int | raccess | ||
| ) | 
Constructor. Opens the surface data file
| filename | File to open | 
| raccess | Access type (FileAttr::READ, FileAttr::WRITE, FileAttr::APPEND) | 
References open().
| SfcUniFile::~SfcUniFile | ( | ) | 
Destructor
References WXP::File::close().
| 
 | static | 
| int SfcUniFile::close | ( | ) | 
Closes the surface data file
References WXP::File::close().
| int SfcUniFile::getDate | ( | Date & | rdate | ) | 
Gets the date of the file
| rdate | Date class to put date information | 
| int SfcUniFile::open | ( | const char * | filename, | 
| int | raccess | ||
| ) | 
Opens the surface data file
| filename | File to open | 
| raccess | Access type (FileAttr::READ, FileAttr::WRITE, FileAttr::APPEND) | 
References WXP::FileAttr::APPEND, checkType(), WXP::DateTool::decode(), WXP::Date::getDay(), WXP::Date::getHour(), WXP::Date::getMinute(), WXP::Date::getMonth(), WXP::Date::getSeconds(), WXP::Date::getYear(), WXP::File::isOpen(), WXP::File::open(), WXP::File::printf(), WXP::File::read(), WXP::FileAttr::READ, and WXP::FileAttr::WRITE.
Referenced by SfcUniFile(), and SfcUniFile().
| int SfcUniFile::read | ( | SfcData & | data | ) | 
Reads a single report/station from the data file
| data | SfcData class to put the data from the file | 
References WXP::File::endFile(), and WXP::SfcData::init().
| int SfcUniFile::rewind | ( | ) | 
Rewinds the surface data file
References WXP::FileAttr::READ, and WXP::File::seek().
| int SfcUniFile::setDate | ( | Date & | rdate | ) | 
Sets the date of the file
| rdate | Date class containing date information |