WXP::SfcData Class Reference
[Data objects]

This class stores surface data. More...

#include "../include/SfcData.h"

List of all members.

Public Types

enum  Locate { USA, CANADA, MEXICO, OTHER }
enum  StatType { MANNED, AMOS, ASOS, AWOS }
enum  RepType {
  UNK, METAR, SPECI, SA,
  SP, SYNOP, SHIP, BUOY,
  DRIBU, CMAN, MISC
}

Public Member Functions

 SfcData ()
int init ()
int setId (const char *str)
const char * getId ()
int setArea (const char *str)
const char * getArea ()
int setName (const char *str)
const char * getName ()
int setWmo (const char *str)
int getWmo ()
int setLoc (float rlat, float rlon)
float getLat ()
float getLon ()
int setElev (float el)
float getElev ()
int setDate (Date rdate)
int getDate (Date &rdate)
Date getDate ()
int getTime ()
int getSeconds ()
int setType (int rtype)
int getType ()
int setT (float rt)
float getT ()
int setTd (float rtd)
float getTd ()
int setDir (float rdir)
float getDir ()
int setSpd (float rspd)
float getSpd ()
int setGust (float rgust)
float getGust ()
int setAlt (float ralt)
float getAlt ()
int setSlp (float rslp)
float getSlp ()
int setVis (float rvis)
float getVis ()
int setWeather (const char *wx)
const char * getWeather ()
int weatherText (String &str)
int setNumCld (int num)
int getNumCld ()
int setCldHeight (int ind, float height)
float getCldHeight (int ind)
float getCldHeight ()
int setCldCover (int ind, char cover)
char getCldCover (int ind)
char getCldCover ()
int setPtendType (int type)
int getPtendType ()
int setPtend (float rptend)
float getPtend ()
int setPrec3 (float val)
float getPrec3 ()
int setPrec6 (float val)
float getPrec6 ()
int setPrec12 (float val)
float getPrec12 ()
int setPrec24 (float val)
float getPrec24 ()
int setPrec (float val)
float getPrec ()
int setPrecPer (int per)
int getPrecPer ()
int setCldLow (int low)
int getCldLow ()
int setCldType (int ind, char type)
char getCldType (int ind)
int setMaxT (float t)
float getMaxT ()
int setMinT (float t)
float getMinT ()
int setMax6T (float t)
float getMax6T ()
int setMin6T (float t)
float getMin6T ()
int setSnowCov (float snow)
float getSnowCov ()
int setSolar (float solar)
float getSolar ()
int setSst (float sst)
float getSst ()
int setWavPer (float wav_per)
float getWavPer ()
int setWavHgt (float wav_hgt)
float getWavHgt ()
int setComment (const char *str)
int addComment (const char *str)
int addComment (const char *str, int num)
const char * getComment ()
int setFlag (int val)
int orFlag (int val)
int getFlag ()
int print ()
int printLine ()
int outString (String &str)
int update (SfcData &rep, int lev)
int update (SfcData &rep)
int validate ()

Static Public Member Functions

static int compare (SfcData &rep1, SfcData &rep2)
static int printDiff (int diff)

Static Public Attributes

static const int comment_len = 100
static const int RMK = 0x1
static const int TGRP = 0x2
static const int SPECIAL = 1
static const int CORRECT = 2
static const int AUTO = 4
static const int DF_TYPE = 1
static const int DF_TIME = 1 << 1
static const int DF_TEMP = 1 << 2
static const int DF_PRES = 1 << 3
static const int DF_WIND = 1 << 4
static const int DF_WX = 1 << 5
static const int DF_CLD = 1 << 6
static const int DF_VIS = 1 << 7
static const int DF_PTND = 1 << 8
static const int DF_PREC = 1 << 9
static const int DF_EXTT = 1 << 10
static const int DF_SNOW = 1 << 11
static const int DF_SOL = 1 << 12
static const int DF_SEA = 1 << 13
static const int DF_CTYP = 1 << 14
static const int DF_COM = 1 << 15

Friends

class SfcDataTool
class SfcDecode
class MetarTool
class SynopTool
class SaoTool
class SfcFile
class SfcWxpFile
class SfcCdfFile
class SfcXmlFile

Detailed Description

This class stores surface data.

Author:
Dan Vietor

Constructor & Destructor Documentation

SfcData::SfcData (  ) 

Constructor. Initializes class data

References init().


Member Function Documentation

int SfcData::compare ( SfcData rep1,
SfcData rep2 
) [static]

Compares the data between two reports. Returns what is different.

Parameters:
rep1 First report
rep2 Second report
Returns:
Integer representing what is different

References WXP::Wxp::outDebug().

int SfcData::init (  ) 
int SfcData::outString ( String str  ) 
int SfcData::print (  ) 
int SfcData::printLine (  ) 

Prints output to a single line (tabular)

References WXP::String::get(), and outString().

int SfcData::update ( SfcData rep,
int  mask 
)

Updates fields in the class based on a mask

Parameters:
rep Report used to update class
mask Mask of what can be updated

References WXP::Const::MISS, and WXP::Wxp::outDebug().

int SfcData::validate (  ) 

Validates data in class

Parameters:
flag Input earth point
Return values:
pt Output point on projection plane

References WXP::Const::MISS.

int SfcData::weatherText ( String str  ) 

Creates a weather description string from current weather info

Return values:
str String class to put description

References WXP::WxTool::getMetarWeatherText().


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1