|
WXP C++ Library Version 6.74.9
|
This class reads and decodes watch box data from file. More...
#include "../include/WatchFile.h"
Public Member Functions | |
| WatchFile () | |
| WatchFile (const char *filename) | |
| WatchFile (Filename &filename) | |
| ~WatchFile () | |
| int | init () |
| int | open (const char *filename) |
| int | open (Filename &filename) |
| int | close () |
| bool | isOpen () |
| int | setDate (Date &rdate) |
| int | read (WatchData &watch) |
This class reads and decodes watch box data from file.
| WatchFile::WatchFile | ( | ) |
Constructor. Initializes class data
References init().
| WatchFile::WatchFile | ( | const char * | filename | ) |
| WatchFile::WatchFile | ( | Filename & | filename | ) |
| WatchFile::~WatchFile | ( | ) |
Destructor.
| int WatchFile::close | ( | ) |
| int WatchFile::init | ( | ) |
Initializes class data
Referenced by WatchFile(), WatchFile(), and WatchFile().
| bool WatchFile::isOpen | ( | ) |
| int WatchFile::open | ( | const char * | filename | ) |
Opens a watch file
| filename | File to open |
References WXP::File::isOpen(), and WXP::File::open().
Referenced by open(), WatchFile(), and WatchFile().
| int WatchFile::open | ( | Filename & | filename | ) |
Opens a watch file
| filename | File to open |
References WXP::Filename::getDate(), WXP::Filename::getName(), and open().
| int WatchFile::read | ( | WatchData & | watch | ) |
Reads and decodes the data
| watch | Watch data |
References WXP::Date::adjustMinute(), WXP::WatchData::axis, WXP::WatchData::CANCELLED, WXP::DateVal::day, WXP::WxTool::decodeDir(), WXP::StrLib::equal(), WXP::WatchData::ES, WXP::WatchData::EW, WXP::File::getLine(), WXP::DateVal::hour, WXP::StrLib::index(), WXP::WatchData::init(), WXP::EarthPoint::lat, WXP::StrLib::length(), WXP::EarthPoint::lon, WXP::DateVal::min, WXP::Const::MISS, WXP::WatchData::NS, WXP::WatchData::num, WXP::Wxp::outDebug(), WXP::WatchData::SEVERE, WXP::WatchData::TEST, WXP::WatchData::TORNADO, WXP::WatchData::type, WXP::WatchData::UNK, WXP::WatchData::VALID, and WXP::WatchData::width.
Referenced by WXP::WatchPlot::readFile().
| int WatchFile::setDate | ( | Date & | rdate | ) |
Sets the base date. Used to get year and month to supplement infor in file.
| rdate | Date |