|
WXP C++ Library Version 6.74.9
|
This class sets up a hash table for upper air data. More...
#include "../include/UpaRawinHash.h"
Public Member Functions | |
| UpaRawinHash () | |
| UpaRawinHash (const char *file) | |
| ~UpaRawinHash () | |
| int | init () |
| int | setup (const char *file) |
| int | get (const char *id, UpaRawinData &data) |
| int | put (const char *id, UpaRawinData &data) |
| int | first () |
| int | next (UpaRawinData &data) |
| int | print () |
| int | printHash () |
This class sets up a hash table for upper air data.
| UpaRawinHash::UpaRawinHash | ( | ) |
| UpaRawinHash::UpaRawinHash | ( | const char * | file | ) |
| UpaRawinHash::~UpaRawinHash | ( | ) |
Destructor
| int UpaRawinHash::get | ( | const char * | id, |
| UpaRawinData & | data | ||
| ) |
Gets the upper air data from hash
| id | City ID to search hash |
| data | UpaRawinHashData class containing output data |
References WXP::Hash::search().
Referenced by WXP::UpaDecode::decode().
| int UpaRawinHash::init | ( | ) |
Initializes the object
| str | The file type |
Referenced by UpaRawinHash(), and UpaRawinHash().
| int UpaRawinHash::put | ( | const char * | id, |
| UpaRawinData & | data | ||
| ) |
Puts the city data from hash
| id | Sounding ID |
| data | UpaRawinData class containing data |
References WXP::Hash::enter(), WXP::Hash::search(), and WXP::CityTool::toId().
Referenced by WXP::UpaDecode::decode().
| int UpaRawinHash::setup | ( | const char * | file | ) |
Setup the hash by reading in the station database file
| file | The station database file name |
References WXP::FileTool::addPath(), WXP::Hash::enter(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::CityData::getId(), WXP::CityData::getLat(), WXP::CityData::getLon(), WXP::CityFile::getNum(), WXP::CityData::getWmo(), WXP::CityFile::isOpen(), WXP::Wxp::outMessage(), WXP::CityFile::read(), WXP::FileAttr::READ, WXP::Hash::set(), and WXP::CityTool::toId().
Referenced by UpaRawinHash(), and UpaRawinHash().