OpenM++ runtime library (libopenm)
openm::ParameterReader Class Reference
Inheritance diagram for openm::ParameterReader:
Collaboration diagram for openm::ParameterReader:

Public Member Functions

 ParameterReader (int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore)
 
int parameterId (void) const noexcept override
 return input parameter id More...
 
size_t sizeOf (void) const noexcept override
 return input parameter size for single sub value More...
 
void readParameter (IDbExec *i_dbExec, int i_subId, const type_info &i_type, size_t i_size, void *io_valueArr) override
 read input parameter single sub value. More...
 
void readParameter (IDbExec *i_dbExec, const type_info &i_type, int i_subCount, size_t i_size, void *io_valueArr) override
 read all sub values of input parameter. More...
 
void readParameter (IDbExec *i_dbExec, const vector< int > &i_subIdArr, const type_info &i_type, size_t i_size, void *io_valueArr) override
 read input parameter single selected sub values. More...
 
virtual int parameterId (void) const noexcept=0
 return input parameter id More...
 
virtual size_t sizeOf (void) const noexcept=0
 return input parameter size for single sub value More...
 
virtual void readParameter (IDbExec *i_dbExec, int i_subId, const type_info &i_type, size_t i_size, void *io_valueArr)=0
 read input parameter single sub value. More...
 
virtual void readParameter (IDbExec *i_dbExec, const type_info &i_type, int i_subCount, size_t i_size, void *io_valueArr)=0
 read all sub values of input parameter. More...
 
virtual void readParameter (IDbExec *i_dbExec, const vector< int > &i_subIdArr, const type_info &i_type, size_t i_size, void *io_valueArr)=0
 read input parameter single selected sub values. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from openm::IParameterReader
static IParameterReadercreate (int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore)
 input parameter reader factory
 

Member Function Documentation

◆ parameterId()

int openm::ParameterReader::parameterId ( void  ) const
inlineoverridevirtualnoexcept

return input parameter id

Implements openm::IParameterReader.

◆ readParameter() [1/3]

void ParameterReader::readParameter ( IDbExec i_dbExec,
const type_info &  i_type,
int  i_subCount,
size_t  i_size,
void *  io_valueArr 
)
overridevirtual

read all sub values of input parameter.

Parameters
[in]i_dbExecdatabase connection
[in]i_typeparameter value type, use std::string for string parameters
[in]i_subCountnumber of parameter sub-values
[in]i_sizeparameter size (number of parameter values in single sub value)
[in,out]io_valueArrarray to return parameter values, size must be =i_size * i_subCount, use io_valueArr[] of std::string for string parameters

Implements openm::IParameterReader.

◆ readParameter() [2/3]

void ParameterReader::readParameter ( IDbExec i_dbExec,
const vector< int > &  i_subIdArr,
const type_info &  i_type,
size_t  i_size,
void *  io_valueArr 
)
overridevirtual

read input parameter single selected sub values.

Parameters
[in]i_dbExecdatabase connection
[in]i_subIdArrvector of sub value ids to select
[in]i_typeparameter value type, use std::string for string parameters
[in]i_sizeparameter size (number of parameter values in single sub value)
[in,out]io_valueArrarray to return parameter values, size must be =i_size * i_subIdArr.size(), use io_valueArr[] of std::string for string parameters

Implements openm::IParameterReader.

◆ readParameter() [3/3]

void ParameterReader::readParameter ( IDbExec i_dbExec,
int  i_subId,
const type_info &  i_type,
size_t  i_size,
void *  io_valueArr 
)
overridevirtual

read input parameter single sub value.

Parameters
[in]i_dbExecdatabase connection
[in]i_subIdparameter sub value id
[in]i_typeparameter value type, use std::string for string parameters
[in]i_sizeparameter size (number of parameter values in single sub value)
[in,out]io_valueArrarray to return parameter values, size must be =i_size, use io_valueArr[] of std::string for string parameters

Implements openm::IParameterReader.

◆ sizeOf()

size_t openm::ParameterReader::sizeOf ( void  ) const
inlineoverridevirtualnoexcept

return input parameter size for single sub value

Implements openm::IParameterReader.


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