WXP C++ Library Version 6.74.9
|
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 () |
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.
ModelSpec::ModelSpec | ( | ) |
Constructor. Initializes class values
References init().
ModelSpec::ModelSpec | ( | const char * | model | ) |
|
inline |
Gets the specification name
Referenced by WXP::HodoPlot::draw(), WXP::SoundPlot::draw(), WXP::RadMask::getGrids(), WXP::RadMask::getGrids(), WXP::RadMask::getGrids(), WXP::GridCont::setFile(), WXP::GridPlot::setFile(), WXP::GridVect::setFile(), WXP::ImagePlot::setFile(), WXP::MeteoPlot::setFile(), WXP::MosPlot::setFile(), WXP::GridCont::setModel(), WXP::GridPlot::setModel(), WXP::GridVect::setModel(), WXP::ImagePlot::setModel(), WXP::GridCont::setNameConv(), WXP::GridPlot::setNameConv(), WXP::GridVect::setNameConv(), WXP::ImagePlot::setNameConv(), WXP::GridPlot::setParam(), and WXP::MosPlot::setParam().
|
inline |
Gets the file name convention
ind | Index for pieced grid |
|
inline |
Returns the number of grids needed
|
inline |
Gets the number of grids in X for piecing
|
inline |
Gets the number of grids in Y for piecing
|
inline |
|
inline |
|
inline |
int ModelSpec::init | ( | ) |
Initializes class values
References WXP::Const::MISS.
Referenced by WXP::GridVect::draw(), ModelSpec(), ModelSpec(), and set().
int ModelSpec::print | ( | ) |
Prints object data
int ModelSpec::set | ( | const char * | model | ) |
Sets up the model specifications
model | The name of the model |
References WXP::FileTool::addPath(), WXP::StrLib::copy(), WXP::File::endFile(), WXP::StrLib::equal(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::Strings::getInt(), WXP::File::getLine(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::Strings::index(), init(), WXP::File::isOpen(), WXP::File::open(), and WXP::Strings::set().
Referenced by WXP::HodoPlot::draw(), WXP::SoundPlot::draw(), ModelSpec(), WXP::GridPlot::setFile(), WXP::GridVect::setFile(), WXP::MeteoPlot::setFile(), WXP::MosPlot::setFile(), WXP::GridCont::setModel(), WXP::GridPlot::setModel(), WXP::GridVect::setModel(), WXP::ImagePlot::setModel(), WXP::GridPlot::setNameConv(), WXP::GridVect::setNameConv(), WXP::GridPlot::setParam(), and WXP::MosPlot::setParam().
|
inline |
Returns if specification is valid
Referenced by WXP::HodoPlot::draw(), and WXP::SoundPlot::draw().