OpenM++ runtime library (libopenm)
|
model metadata loader: read and broadcast metadata and run options. More...
Classes | |
struct | ImportOpts |
struct | ParamImportOpts |
struct | ParamSubOpts |
struct | RunImportOpts |
Public Member Functions | |
virtual | ~MetaLoader (void) noexcept=0 |
last cleanup | |
const ArgReader & | argOpts (void) const |
arguments from command line and ini-file | |
const MetaHolder * | meta (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 | |
int | parameterIdByName (const char *i_name) const |
return index of parameter by name More... | |
int | tableIdByName (const char *i_name) const |
return id of output table by name | |
bool | isSuppressed (const char *i_name) const |
check by name if output table suppressed | |
bool | isSuppressed (int i_tableId) const |
check by id if output table suppressed | |
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. | |
const RunOptions & | modelRunOptions (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) |
merge command line and ini-file arguments with profile_option table values. More... | |
Static Protected Member Functions | |
static int | readMetaTables (IDbExec *i_dbExec, MetaHolder *io_metaStore, const char *i_name, const char *i_digest) |
Protected Attributes | |
int | modelId |
unique_ptr< MetaHolder > | metaStore |
vector< int > | paramIdSubArr |
vector< int > | tableIdSuppressArr |
vector< int > | entityIdxArr |
bool | isCsvEventColumn |
vector< bool > | entityUseEvents |
map< int, ParamSubOpts > | subOptsMap |
map< string, ImportOpts > | importOptsMap |
map< int, ParamImportOpts > | paramImportOptsMap |
map< int, pair< string, string > > | langOptsMap |
model metadata loader: read and broadcast metadata and run options.
|
static |
initialize run options from command line and ini-file
initialize run options from command line and ini-file.
|
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-language"].
|
protected |
merge command line and ini-file arguments with profile_option table values.
int MetaLoader::parameterIdByName | ( | const char * | i_name | ) | const |
return index of parameter by name
return id of parameter by name