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

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)
 

Detailed Description

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.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ ModelName()

ModelName::ModelName ( )

Constructor. Initializes class values

References init().

Member Function Documentation

◆ get() [1/2]

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.

Parameters
rsrcSource of data
rmodModel number
Returns
Model name string

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().

◆ get() [2/2]

int ModelName::get ( int  rsrc,
int  rmod,
String str 
)

Gets a model name string

Parameters
rsrcSource of data
rmodModel number
Return values
strString class to output data

References WXP::String::get(), get(), and WXP::String::set().

◆ init()

int ModelName::init ( )

Initializes class values

References WXP::Const::MISS.

Referenced by ModelName().


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