This class is for storing a list of up to 10 parameters and is used as a way of informing the FCSTdatabase class about the model you wish to store/access.
More...
#include <fcst_db.h>
|
| | DatabaseOC () |
| | Constructor. More...
|
| |
| bool | add_param (const std::string &name, const double &value) |
| | Function for adding a parameter (name and value pair) to the list of up to 5 parameters. More...
|
| |
| bool | add_param (const std::string &, const std::string &) |
| |
| void | clear () |
| | Function for clearing parameter data so one can reuse the same object more than once. More...
|
| |
| bool | compare (const DatabaseOC &other, const double &tolerance) |
| | Function for performing a tolerance based comparison of OC object with another OC object. More...
|
| |
This class is for storing a list of up to 10 parameters and is used as a way of informing the FCSTdatabase class about the model you wish to store/access.
| FcstUtilities::DatabaseOC::DatabaseOC |
( |
| ) |
|
| bool FcstUtilities::DatabaseOC::add_param |
( |
const std::string & |
name, |
|
|
const double & |
value |
|
) |
| |
Function for adding a parameter (name and value pair) to the list of up to 5 parameters.
Returns false if unsuccessful.
See Unit test "testHasData" for usage demo.
| bool FcstUtilities::DatabaseOC::add_param |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
| void FcstUtilities::DatabaseOC::clear |
( |
| ) |
|
|
inline |
Function for clearing parameter data so one can reuse the same object more than once.
References num_param, and param_data.
| bool FcstUtilities::DatabaseOC::compare |
( |
const DatabaseOC & |
other, |
|
|
const double & |
tolerance |
|
) |
| |
Function for performing a tolerance based comparison of OC object with another OC object.
Returns false if the two OC objects do not match within a certain tolerance.
| int FcstUtilities::DatabaseOC::max_param |
|
private |
| int FcstUtilities::DatabaseOC::num_param |
|
private |
| std::vector<std::vector<std::string> > FcstUtilities::DatabaseOC::param_data |
|
private |
The documentation for this class was generated from the following file: