WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
WXP::ModelSpec Class Reference

This class retrieves forecast model file parameters. This is a mapping between a model type and the files and grids that are needed to construct grids for display. This is useful for files that contain multiple types of grids or grids that need to be pieced together. More...

#include "../include/ModelSpec.h"

Public Member Functions

 ModelSpec ()
 
 ModelSpec (const char *model)
 
int init ()
 
int set (const char *model)
 
bool valid ()
 
int getNum ()
 
const char * getName ()
 
const char * getName (int ind)
 
int getNx ()
 
int getNy ()
 
int getX (int ind)
 
int getY (int ind)
 
int getType (int ind)
 
int print ()
 

Detailed Description

This class retrieves forecast model file parameters. This is a mapping between a model type and the files and grids that are needed to construct grids for display. This is useful for files that contain multiple types of grids or grids that need to be pieced together.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ ModelSpec() [1/2]

ModelSpec::ModelSpec ( )

Constructor. Initializes class values

References init().

◆ ModelSpec() [2/2]

ModelSpec::ModelSpec ( const char *  model)

Constructor. Initializes class values

References init(), and set().

Member Function Documentation

◆ getName() [1/2]

const char * WXP::ModelSpec::getName ( )
inline

◆ getName() [2/2]

const char * WXP::ModelSpec::getName ( int  ind)
inline

Gets the file name convention

Parameters
indIndex for pieced grid

◆ getNum()

int WXP::ModelSpec::getNum ( )
inline

Returns the number of grids needed

◆ getNx()

int WXP::ModelSpec::getNx ( )
inline

Gets the number of grids in X for piecing

◆ getNy()

int WXP::ModelSpec::getNy ( )
inline

Gets the number of grids in Y for piecing

◆ getType()

int WXP::ModelSpec::getType ( int  ind)
inline

Gets the grid type

Parameters
indIndex for pieced grid

References WXP::Const::MISS.

◆ getX()

int WXP::ModelSpec::getX ( int  ind)
inline

Gets the X location of grid

Parameters
indIndex for pieced grid

References WXP::Const::MISS.

◆ getY()

int WXP::ModelSpec::getY ( int  ind)
inline

Gets the Y location of grid

Parameters
indIndex for pieced grid

References WXP::Const::MISS.

◆ init()

int ModelSpec::init ( )

Initializes class values

References WXP::Const::MISS.

Referenced by WXP::GridVect::draw(), ModelSpec(), and set().

◆ print()

int ModelSpec::print ( )

Prints object data

◆ set()

int ModelSpec::set ( const char *  model)

◆ valid()

bool WXP::ModelSpec::valid ( )
inline

Returns if specification is valid

Referenced by WXP::HodoPlot::draw(), and WXP::SoundPlot::draw().


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