OpenM++ runtime library (libopenm)
openm::MetaLoader Class Referenceabstract

model metadata loader: read and broadcast metadata and run options. More...

Inheritance diagram for openm::MetaLoader:

Public Member Functions

virtual ~MetaLoader (void) noexcept=0
 last cleanup
 
const ArgReaderargOpts (void) const
 arguments from command line and ini-file
 
const MetaHoldermeta (void) const
 model metadata tables
 
const RunOptions modelRunOptions (int i_subCount, int i_subId) const
 return basic model run options
 
int parameterSubCount (int i_paramId) const
 return sub-values count by parameter id
 

Static Public Member Functions

static const ArgReader getRunOptions (int argc, char **argv)
 initialize run options from command line and ini-file More...
 

Public Attributes

int subValueCount
 total number of sub-values
 
int threadCount
 max number of modeling threads
 

Protected Member Functions

 MetaLoader (const ArgReader &i_argStore)
 create metadata loader. More...
 
const RunOptionsmodelRunOptions (void) const
 return basic model run options
 
void setRunOptions (const RunOptions &i_opts)
 set basic model run options
 
void loadMessages (IDbExec *i_dbExec)
 read model messages from database. More...
 
void mergeOptions (IDbExec *i_dbExec)
 
int createTaskRun (int i_taskId, IDbExec *i_dbExec)
 
int findTask (IDbExec *i_dbExec)
 
int findWorkset (int i_setId, IDbExec *i_dbExec)
 
void createRunOptions (int i_runId, IDbExec *i_dbExec) const
 

Static Protected Member Functions

static int readMetaTables (IDbExec *i_dbExec, MetaHolder *io_metaStore)
 

Protected Attributes

int modelId
 
unique_ptr< MetaHoldermetaStore
 
vector< int > paramIdSubArr
 

Detailed Description

model metadata loader: read and broadcast metadata and run options.

Constructor & Destructor Documentation

◆ MetaLoader()

openm::MetaLoader::MetaLoader ( const ArgReader i_argStore)
inlineprotected

create metadata loader.

Member Function Documentation

◆ getRunOptions()

const ArgReader MetaLoader::getRunOptions ( int  argc,
char **  argv 
)
static

initialize run options from command line and ini-file

initialize run options from command line and ini-file.

◆ loadMessages()

void MetaLoader::loadMessages ( IDbExec i_dbExec)
protected

read model messages from database.

User preferd language determined by simple match, for example: if user language is en_CA.UTF-8 then search done for lower case ["en-ca", "en", "model-default-langauge"].


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