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

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)
 

Detailed Description

This class reads in surface data from a Unisys formatted file from file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ SfcUniFile() [1/3]

SfcUniFile::SfcUniFile ( )

Constructor

◆ SfcUniFile() [2/3]

SfcUniFile::SfcUniFile ( const char *  filename)

Constructor. Opens the surface data file (access=READ, type=UNK)

Parameters
filenameFile to open

References open(), and WXP::FileAttr::READ.

◆ SfcUniFile() [3/3]

SfcUniFile::SfcUniFile ( const char *  filename,
int  raccess 
)

Constructor. Opens the surface data file

Parameters
filenameFile to open
raccessAccess type (FileAttr::READ, FileAttr::WRITE, FileAttr::APPEND)

References open().

◆ ~SfcUniFile()

SfcUniFile::~SfcUniFile ( )

Destructor

References WXP::File::close().

Member Function Documentation

◆ checkType()

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

Checks the type of data in the file

Parameters
filenameFile to check

Referenced by open().

◆ close()

int SfcUniFile::close ( )

Closes the surface data file

References WXP::File::close().

◆ getDate()

int SfcUniFile::getDate ( Date rdate)

Gets the date of the file

Return values
rdateDate class to put date information

◆ open()

int SfcUniFile::open ( const char *  filename,
int  raccess 
)

◆ read()

int SfcUniFile::read ( SfcData data)

Reads a single report/station from the data file

Return values
dataSfcData class to put the data from the file

References WXP::File::endFile(), and WXP::SfcData::init().

◆ rewind()

int SfcUniFile::rewind ( )

Rewinds the surface data file

References WXP::FileAttr::READ, and WXP::File::seek().

◆ setDate()

int SfcUniFile::setDate ( Date rdate)

Sets the date of the file

Return values
rdateDate class containing date information

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