WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
WXP::VarSpec Class Reference

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)
 

Static Public Attributes

static const int format_len = 100
 
static const int FORETIME = 0x1
 
static const int LEVEL = 0x2
 
static const int VAR =0x4
 
static const int FORMAT =0x8
 
static const int ALL =0xF
 

Friends

class VarList
 

Detailed Description

This class specifies variable information.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ VarSpec() [1/2]

VarSpec::VarSpec ( )

Constructor. Initializes values

References init().

◆ VarSpec() [2/2]

VarSpec::VarSpec ( const char *  str)

Constructor. Sets abbreviation and units

Parameters
strVariable specification

References set().

Member Function Documentation

◆ getPlot()

int WXP::VarSpec::getPlot ( )
inline

Gets the plot type

◆ getType()

int WXP::VarSpec::getType ( )
inline

Gets the variable type

◆ init()

int VarSpec::init ( )

◆ print()

int VarSpec::print ( )

◆ printDetails()

int VarSpec::printDetails ( )

Prints class data to standard output

References WXP::ForeTime::print(), WXP::Level::print(), WXP::Variable::print(), and WXP::StrLib::valid().

◆ set()

int VarSpec::set ( const char *  str)

◆ setPlot()

int WXP::VarSpec::setPlot ( int  t)
inline

Sets the plot type

◆ setType()

int WXP::VarSpec::setType ( int  t)
inline

Sets the variable type

◆ toInfoLabel()

int VarSpec::toInfoLabel ( String str)

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