WXP C++ Library Version 6.74.9
|
This class stores surface data. More...
#include "../include/SfcData.h"
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 | getHour () |
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) |
Friends | |
class | SfcDataTool |
class | SfcDecode |
class | MetarTool |
class | SynopTool |
class | SaoTool |
class | SfcFile |
class | SfcWxpFile |
class | SfcCdfFile |
class | SfcXmlFile |
This class stores surface data.
SfcData::SfcData | ( | ) |
Constructor. Initializes class data
References init().
Compares the data between two reports. Returns what is different.
rep1 | First report |
rep2 | Second report |
References WXP::Wxp::outDebug().
int SfcData::init | ( | ) |
Initializes class data
References WXP::Date::init(), and WXP::Const::MISS.
Referenced by WXP::MetarTool::decode(), WXP::SaoTool::decode(), WXP::SynopTool::decode(), WXP::SfcCdfFile::read(), WXP::SfcUniFile::read(), WXP::SfcWxpFile::read(), WXP::SfcXmlFile::read(), and SfcData().
int SfcData::outString | ( | String & | str | ) |
Prints output to a single line (tabular)
References WXP::String::aprintf(), WXP::StrLib::copy(), WXP::Convert::CtoK(), WXP::Date::getHour(), WXP::Date::getMinute(), WXP::WxTool::getWeather(), WXP::WxTool::getWmoWeather(), WXP::Const::MISS, WXP::String::printf(), WXP::Calc::relHum(), WXP::String::set(), and WXP::WxTool::setCloud().
Referenced by printLine().
int SfcData::print | ( | ) |
Prints class values to standard output
References WXP::Convert::CMtoIN(), WXP::Convert::CtoF(), WXP::String::get(), WXP::Date::getHour(), WXP::Date::getMinute(), WXP::WxTool::getTextFromWeather(), WXP::Const::MISS, WXP::Convert::MMtoIN(), and WXP::Date::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
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
flag | Input earth point |
pt | Output point on projection plane |
References WXP::Const::MISS.
int SfcData::weatherText | ( | String & | str | ) |
Creates a weather description string from current weather info
str | String class to put description |
References WXP::WxTool::getTextFromWeather().