WXP C++ Library Version 6.74.9
|
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) |
This class reads and decodes warning location data from file.
WarnFile::WarnFile | ( | ) |
Constructor. Initializes class data
References init().
WarnFile::WarnFile | ( | const char * | filename | ) |
WarnFile::WarnFile | ( | Filename & | filename | ) |
WarnFile::~WarnFile | ( | ) |
Destructor.
int WarnFile::close | ( | ) |
int WarnFile::init | ( | ) |
Initializes class data
Referenced by WarnFile(), WarnFile(), and WarnFile().
bool WarnFile::isOpen | ( | ) |
Is file opened
References WXP::WmoParse::isOpen().
Referenced by WXP::WarnPlot::readFile().
int WarnFile::open | ( | const char * | filename | ) |
Opens a watch file
filename | File to open |
References WXP::WmoParse::isOpen(), and WXP::WmoParse::open().
Referenced by WarnFile(), and WarnFile().
int WarnFile::open | ( | Filename & | filename | ) |
Opens a watch file
filename | File to open |
References WXP::Filename::getDate(), WXP::WmoParse::isOpen(), and WXP::WmoParse::open().
int WarnFile::read | ( | WarnData & | warn | ) |
Reads and decodes the data
watch | Warn data |
References WXP::Strings::add(), WXP::EarthPoints::add(), WXP::StrLib::append(), WXP::Strings::clear(), WXP::StrLib::clear(), WXP::StrLib::copy(), WXP::Vtec::decode(), WXP::StrLib::equal(), WXP::WmoParse::getHeader(), WXP::WmoParse::getLine(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::WmoParse::isNewProd(), WXP::Wxp::outDebug(), and WXP::StrLib::trimWS().
Referenced by WXP::WarnPlot::readFile().
int WarnFile::setDate | ( | Date & | rdate | ) |
Sets the base date. Used to get year and month to supplement infor in file.
rdate | Date |
Referenced by WXP::WarnPlot::readFile().