WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::UpaRawinHash Class Reference

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 ()

Detailed Description

This class sets up a hash table for upper air data.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ UpaRawinHash() [1/2]

UpaRawinHash::UpaRawinHash ( )

Constructor. Sets up hash table using the upa.cty file

References init(), and setup().

◆ UpaRawinHash() [2/2]

UpaRawinHash::UpaRawinHash ( const char * file)

Constructor. Sets up hash table.

Parameters
fileUpper air station database file to use

References init(), and setup().

◆ ~UpaRawinHash()

UpaRawinHash::~UpaRawinHash ( )

Destructor

Member Function Documentation

◆ get()

int UpaRawinHash::get ( const char * id,
UpaRawinData & data )

Gets the upper air data from hash

Parameters
idCity ID to search hash
Return values
dataUpaRawinHashData class containing output data

◆ init()

int UpaRawinHash::init ( )

Initializes the object

Parameters
strThe file type

Referenced by UpaRawinHash(), and UpaRawinHash().

◆ put()

int UpaRawinHash::put ( const char * id,
UpaRawinData & data )

Puts the city data from hash

Parameters
idSounding ID
Return values
dataUpaRawinData class containing data

References WXP::CityTool::toId().

◆ setup()


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