OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
FcstUtilities::DatabaseOC Class Reference

This class is for storing a list of up to 5 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>

Public Member Functions

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

Private Member Functions

bool add_param (const std::string &, const std::string &)
 

Private Attributes

int num_param
 
int max_param
 
std::vector< std::vector
< std::string > > 
param_data
 

Friends

class FCSTdatabase
 

Detailed Description

This class is for storing a list of up to 5 parameters and is used as a way of informing the FCSTdatabase class about the model you wish to store/access.

Constructor & Destructor Documentation

FcstUtilities::DatabaseOC::DatabaseOC ( )

Constructor.

Member Function Documentation

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 &   
)
private

Friends And Related Function Documentation

friend class FCSTdatabase
friend

Member Data Documentation

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: