|
WXP C++ Library Version 6.74.9
|
This class specifies variable information. More...
#include "../include/VarSpec.h"
Public Types | |
| enum | Type { NONE , PARAM , VECT , GROUP , FUNC , VECTFUNC , MISC } |
| enum | Plot { DEF , PLOT , DATA , CONTOUR , VECTOR , MAP , PANEL } |
Public Member Functions | |
| VarSpec () | |
| VarSpec (const char *str) | |
| int | init () |
| int | set (const char *str) |
| int | set (VarSpec &vs) |
| int | setType (int t) |
| int | getType () |
| int | setPlot (int t) |
| int | getPlot () |
| int | setFore (const char *str) |
| int | set (ForeTime &rfore) |
| int | get (ForeTime &rfore) |
| ForeTime | getFore () |
| int | getForeType () |
| float | getForeTypeOffset () |
| float | getForeHours () |
| int | getForeSeconds () |
| int | getForeString (String &str) |
| bool | isForeSet () |
| int | setLevel (const char *str) |
| int | set (Level &rlevel) |
| int | get (Level &rlevel) |
| int | getLevelType1 () |
| Level | getLevel () |
| int | getLevelString (String &str) |
| bool | isLevelSet () |
| int | setVar (int ind, const char *unit) |
| int | setVar (const char *abbr, const char *unit) |
| int | setVar (const char *str) |
| int | set (Variable &rvar) |
| int | get (Variable &rvar) |
| Variable | getVar () |
| int | setUnits (const char *str) |
| const char * | getUnits () |
| int | setFormat (const char *str) |
| const char * | getFormat () |
| int | getForeCode () |
| int | getLevelTypeCode () |
| int | getLevelCode () |
| int | getVarCode () |
| int | getVarType () |
| int | getVarInd () |
| const char * | getVarAbbr () |
| int | decode (const char *str) |
| int | toString (String &str) |
| int | toForeLabel (String &str) |
| int | toLevelLabel (String &str) |
| int | toVarLabel (String &str) |
| int | toVarAbbr (String &str) |
| int | toInfoLabel (String &str) |
| int | toDateLabel (Date &date, Timezone &tz, const char *src, String &str) |
| int | toDateLabel (Date &date, const char *src, String &str) |
| int | update (VarSpec &v1, int flag) |
| int | update (VarSpec &v1) |
| int | update (ForeTime &ft, Level &lev) |
| int | update (ForeTime &ft) |
| int | update (Level &lev) |
| int | printFore () |
| int | printLevel () |
| int | printVar () |
| int | printDetails () |
| int | print () |
Static Public Member Functions | |
| static int | update (VarSpec &v1, VarSpec &v2, int flag) |
Friends | |
| class | VarList |
This class specifies variable information.
| VarSpec::VarSpec | ( | ) |
Constructor. Initializes values
References init().
| VarSpec::VarSpec | ( | const char * | str | ) |
|
inline |
Gets the plot type
|
inline |
Gets the variable type
| int VarSpec::init | ( | ) |
Initializes the class values
References WXP::ForeTime::init(), WXP::Level::init(), WXP::Variable::init(), and WXP::Const::MISS.
Referenced by WXP::GridPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), and VarSpec().
| int VarSpec::print | ( | ) |
Prints class data to standard output
References WXP::String::get(), WXP::Variable::toIndCode(), WXP::ForeTime::toString(), WXP::Level::toString(), WXP::Variable::toString(), and WXP::StrLib::valid().
| int VarSpec::printDetails | ( | ) |
Prints class data to standard output
References WXP::ForeTime::print(), WXP::Level::print(), WXP::Variable::print(), and WXP::StrLib::valid().
| int VarSpec::set | ( | const char * | str | ) |
Sets abbreviation and units
| str | Variable specification |
Referenced by WXP::GridPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::Grid::setForeTime(), WXP::Grid::setForeTime(), WXP::Grid::setLevel(), WXP::Grid::setLevel(), WXP::Grid::setVar(), WXP::Grid::setVar(), and VarSpec().
|
inline |
Sets the plot type
|
inline |
Sets the variable type
| int VarSpec::toInfoLabel | ( | String & | str | ) |
Converts class data to a string
| str | Output String class |
References WXP::StrLib::append(), WXP::StrLib::clear(), WXP::String::get(), WXP::String::set(), WXP::Level::toLabel(), WXP::Variable::toLabel(), WXP::ForeTime::toVarLabel(), and WXP::String::valid().
Referenced by WXP::GridMath::abs(), WXP::GridMath::add(), WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), WXP::GridMath::diff(), WXP::GridMath::div(), WXP::GridPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::NidsPlot::drawData(), WXP::GridMath::exp(), WXP::GridMath::inv(), WXP::GridMath::log(), WXP::GridMath::log10(), WXP::GridMath::max(), WXP::GridMath::min(), WXP::GridMath::mod(), WXP::GridMath::mult(), WXP::GridMath::pow(), and WXP::GridMath::sqrt().