WXP::VarSpec Class Reference

This class specifies variable information. More...

#include "../include/VarSpec.h"

List of all members.

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

Detailed Description

This class specifies variable information.

Author:
Dan Vietor

Constructor & Destructor Documentation

VarSpec::VarSpec (  ) 

Constructor. Initializes values

References init().

VarSpec::VarSpec ( const char *  str  ) 

Constructor. Sets abbreviation and units

Parameters:
str Variable specification

Member Function Documentation

int WXP::VarSpec::getPlot (  )  [inline]

Gets the plot type

int WXP::VarSpec::getType (  )  [inline]

Gets the variable type

int VarSpec::init (  ) 
int VarSpec::print (  ) 
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  ) 
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  ) 

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