WXP C++ Library Version 6.74.9
|
This class retrieves forecast model name from file.
The model name is cached in the object so it can be used again.
If it is not a match, then it searches the mod_name.lup file to get the name.
More...
#include "../include/ModelName.h"
Public Member Functions | |
ModelName () | |
int | init () |
const char * | get (int rsrc, int rmod) |
int | get (int rsrc, int rmod, String &str) |
This class retrieves forecast model name from file.
The model name is cached in the object so it can be used again.
If it is not a match, then it searches the mod_name.lup file to get the name.
ModelName::ModelName | ( | ) |
Constructor. Initializes class values
References init().
const char * ModelName::get | ( | int | rsrc, |
int | rmod | ||
) |
Gets a model name string. Returns internally stored name if a match to previous call, otherwise, it searches the mod_name.lup file.
rsrc | Source of data |
rmod | Model number |
References WXP::FileTool::addPath(), WXP::File::close(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::File::getLine(), WXP::File::isOpen(), WXP::File::open(), WXP::Wxp::outWarning(), and WXP::StrLib::trimWS().
Referenced by get(), and WXP::GribFile::setPDB().
int ModelName::get | ( | int | rsrc, |
int | rmod, | ||
String & | str | ||
) |
Gets a model name string
rsrc | Source of data |
rmod | Model number |
str | String class to output data |
References WXP::String::get(), get(), and WXP::String::set().
int ModelName::init | ( | ) |