WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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

References WXP::Hash::search().

Referenced by WXP::UpaDecode::decode().

◆ init()

int UpaRawinHash::init ( )

Initializes the object

Parameters
strThe file type

Referenced by 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::Hash::enter(), WXP::Hash::search(), and WXP::CityTool::toId().

Referenced by WXP::UpaDecode::decode().

◆ setup()

int UpaRawinHash::setup ( const char *  file)

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