This class specifies variable information. More...
#include "../include/VarSpec.h"
Public Types | |
| enum | Type { NONE, PARAM, VECT, GROUP, FUNC, 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 | getForeHour () |
| int | getForeSecs () |
| 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 | 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) |
Static Public Attributes | |
| static const int | format_len = 100 |
Friends | |
| class | VarList |
This class specifies variable information.
| VarSpec::VarSpec | ( | ) |
Constructor. Initializes values
References init().
| VarSpec::VarSpec | ( | const char * | str | ) |
Constructor. Sets abbreviation and units
| str | Variable specification |
| int WXP::VarSpec::getPlot | ( | ) | [inline] |
Gets the plot type
| int WXP::VarSpec::getType | ( | ) | [inline] |
Gets the variable type
| int VarSpec::init | ( | ) |
Initializes the class values
References WXP::Variable::init(), WXP::Level::init(), WXP::ForeTime::init(), and WXP::Const::MISS.
Referenced by WXP::UpaPlot::draw(), WXP::SfcPlot::draw(), WXP::MosPlot::draw(), WXP::GridPlot::draw(), and VarSpec().
| int VarSpec::print | ( | ) |
Prints class data to standard output
References WXP::String::get(), WXP::Variable::toString(), WXP::Level::toString(), WXP::ForeTime::toString(), and WXP::StrLib::valid().
| int VarSpec::printDetails | ( | ) |
Prints class data to standard output
References WXP::Variable::print(), WXP::Level::print(), WXP::ForeTime::print(), and WXP::StrLib::valid().
| int VarSpec::set | ( | const char * | str | ) |
Sets abbreviation and units
| str | Variable specification |
Referenced by WXP::UpaPlot::draw(), WXP::SfcPlot::draw(), WXP::MosPlot::draw(), WXP::GridPlot::draw(), WXP::Grid::setForeTime(), WXP::Grid::setLevel(), and WXP::Grid::setVar().
| int WXP::VarSpec::setPlot | ( | int | t | ) | [inline] |
Sets the plot type
| int WXP::VarSpec::setType | ( | int | t | ) | [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::Variable::toLabel(), WXP::Level::toLabel(), WXP::ForeTime::toVarLabel(), and WXP::String::valid().
Referenced by WXP::GridMath::add(), WXP::UpaRaw::compute(), WXP::SfcRaw::compute(), WXP::MosRaw::compute(), WXP::GridMath::diff(), WXP::GridMath::div(), WXP::UpaPlot::draw(), WXP::SfcPlot::draw(), WXP::MosPlot::draw(), WXP::GridPlot::draw(), WXP::NidsPlot::drawData(), and WXP::GridMath::mult().
1.6.1