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

This class reads and decodes warning location data from file. More...

#include "../include/WarnFile.h"

Public Member Functions

 WarnFile ()
 
 WarnFile (const char *filename)
 
 WarnFile (Filename &filename)
 
 ~WarnFile ()
 
int init ()
 
int open (const char *filename)
 
int open (Filename &filename)
 
int close ()
 
bool isOpen ()
 
int setDate (Date &rdate)
 
int read (WarnData &warn)
 

Detailed Description

This class reads and decodes warning location data from file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ WarnFile() [1/3]

WarnFile::WarnFile ( )

Constructor. Initializes class data

References init().

◆ WarnFile() [2/3]

WarnFile::WarnFile ( const char *  filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ WarnFile() [3/3]

WarnFile::WarnFile ( Filename filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ ~WarnFile()

WarnFile::~WarnFile ( )

Destructor.

Member Function Documentation

◆ close()

int WarnFile::close ( )

Closes the file

References WXP::WmoParse::close().

Referenced by WXP::WarnPlot::readFile().

◆ init()

int WarnFile::init ( )

Initializes class data

Referenced by WarnFile(), WarnFile(), and WarnFile().

◆ isOpen()

bool WarnFile::isOpen ( )

Is file opened

Returns
True if open

References WXP::WmoParse::isOpen().

Referenced by WXP::WarnPlot::readFile().

◆ open() [1/2]

int WarnFile::open ( const char *  filename)

Opens a watch file

Parameters
filenameFile to open

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

Referenced by WarnFile(), and WarnFile().

◆ open() [2/2]

int WarnFile::open ( Filename filename)

Opens a watch file

Parameters
filenameFile to open

References WXP::Filename::getDate(), WXP::WmoParse::isOpen(), and WXP::WmoParse::open().

◆ read()

int WarnFile::read ( WarnData warn)

◆ setDate()

int WarnFile::setDate ( Date rdate)

Sets the base date. Used to get year and month to supplement infor in file.

Parameters
rdateDate

Referenced by WXP::WarnPlot::readFile().


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