26 static constexpr const char *
runName =
"OpenM.RunName";
29 static constexpr const char *
runId =
"OpenM.RunId";
32 static constexpr const char *
runCreated =
"OpenM.RunCreated";
38 static constexpr const char *
setId =
"OpenM.SetId";
41 static constexpr const char *
setName =
"OpenM.SetName";
44 static constexpr const char *
baseRunName =
"OpenM.BaseRunName";
47 static constexpr const char *
baseRunId =
"OpenM.BaseRunId";
53 static constexpr const char *
taskId =
"OpenM.TaskId";
56 static constexpr const char *
taskName =
"OpenM.TaskName";
59 static constexpr const char *
taskRunName =
"OpenM.TaskRunName";
62 static constexpr const char *
taskRunId =
"OpenM.TaskRunId";
65 static constexpr const char *
taskWait =
"OpenM.TaskWait";
68 static constexpr const char *
profile =
"OpenM.Profile";
74 static constexpr const char *
notOnRoot =
"OpenM.NotOnRoot";
77 static constexpr const char *
dbConnStr =
"OpenM.Database";
80 static constexpr const char *
dbSqlite =
"OpenM.Sqlite";
83 static constexpr const char *
dbFromBin =
"OpenM.SqliteFromBin";
86 static constexpr const char *
useSparse =
"OpenM.SparseOutput";
89 static constexpr const char *
sparseNull =
"OpenM.SparseNullValue";
95 static constexpr const char *
paramDir =
"OpenM.ParamDir";
98 static constexpr const char *
useIdCsv =
"OpenM.IdCsv";
200 static constexpr const char *
traceUseTs =
"OpenM.TraceUseTimeStamp";
203 static constexpr const char *
traceUsePid =
"OpenM.TraceUsePidStamp";
209 static constexpr const char *
traceRank =
"OpenM.TraceRank";
212 static constexpr const char *
logRank =
"OpenM.LogRank";
215 static constexpr const char *
messageLang =
"OpenM.MessageLanguage";
237 static constexpr const char *
iniFile =
"ini";
277 return binary_search(paramIdSubArr.cbegin(), paramIdSubArr.cend(), i_paramId) ?
subValueCount : 1;
292 return binary_search(tableIdSuppressArr.cbegin(), tableIdSuppressArr.cend(), i_tableId);
297 unique_ptr<MetaHolder> metaStore;
298 vector<int> paramIdSubArr;
299 vector<int> tableIdSuppressArr;
300 vector<int> entityIdxArr;
301 bool isCsvEventColumn;
302 vector<bool> entityUseEvents;
309 isCsvEventColumn(false),
320 static int readMetaTables(
IDbExec * i_dbExec,
MetaHolder * io_metaStore,
const char * i_name,
const char * i_digest);
333 enum class KindSubIds :
int
343 enum class FromSub :
int
357 KindSubIds kind = KindSubIds::none;
359 FromSub from = FromSub::defaultValue;
362 map<int, ParamSubOpts> subOptsMap;
365 enum class ImportKind :
int
378 ImportKind kind = ImportKind::none;
384 string connectionStr;
386 map<string, ImportOpts> importOptsMap;
394 unique_ptr<MetaHolder> meta;
395 unique_ptr<IDbExec> dbExec;
402 map<int, ParamImportOpts> paramImportOptsMap;
405 map<int, pair<string, string> > langOptsMap;
412 void mergeParameterProfile(
413 const string & i_profileName,
const char * i_prefix,
const IProfileOptionTable * i_profileOpt,
const vector<ParamDicRow> & i_paramRs
417 void parseParamSubOpts(
void);
420 void parseImportOptions(
void);
423 void parseSuppressOptions(
void);
426 void parseLangOptions(
void);
429 void parseEntityOptions(
void);
432 tuple<bool, string, const EntityDicRow *> parseEntityNameOption(
const string & i_key,
const string & i_metadataPrefix)
const;
OpenM++ arguments reader: parse command line and ini-file arguments.
database connection wrapper to execute sql commands.
Definition: dbExec.h:21
OpenM++: message passing library public interface.
openM++ namespace
Definition: log.h:32
arguments reader to get runtime arguments from command line and ini-file.
Definition: argReader.h:56
profile_option table public interface.
Definition: dbMetaTable.h:867
basic model run options
Definition: omModel.h:26
keys for model run options
Definition: metaLoader.h:21
static constexpr const char * traceToFile
trace log to file
Definition: metaLoader.h:191
static constexpr const char * subValuesPrefix
options started with "SubValues." used specify sub-values of input parameter or group of parameters,...
Definition: metaLoader.h:116
static constexpr const char * tableSuppress
exclude output tables or tables group from run results, ex: -Tables.Suppress AgeTable,...
Definition: metaLoader.h:119
static constexpr const char * useSparse
OBSOLETE, for backward compatibility only.
Definition: metaLoader.h:86
static constexpr const char * parameterPrefix
options started with "Parameter." treated as value of model scalar input parameter,...
Definition: metaLoader.h:110
static constexpr const char * useIdCsv
if true then parameter(s) csv file(s) contain enum id's, default: enum code
Definition: metaLoader.h:98
static constexpr const char * sparseNull
OBSOLETE, for backward compatibility only.
Definition: metaLoader.h:89
static constexpr const char * traceUsePid
trace use pid-stamp in log "stamped" file name
Definition: metaLoader.h:203
static constexpr const char * importRunIdPrefix
options started with "ImportRunId." used to specify run id to import parameters from,...
Definition: metaLoader.h:164
static constexpr const char * threadCount
number of modeling threads
Definition: metaLoader.h:71
static constexpr const char * doubleFormat
convert to string format for float, double, long double
Definition: metaLoader.h:92
static constexpr const char * setId
working set id to get input parameters
Definition: metaLoader.h:38
static constexpr const char * microdataEvents
filter entity events, ex: -Microdata.Events Birth,Union or -Microdata.Events All
Definition: metaLoader.h:143
static constexpr const char * iotaSubValue
sub-value of parameter created as integer from 0 to sub-value count
Definition: metaLoader.h:221
static constexpr const char * paramDir
dir/to/read/input/parameter.csv, it can be any of: .csv .tsv .id.csv .id.tsv file.
Definition: metaLoader.h:95
static constexpr const char * messageLang
language to display output messages
Definition: metaLoader.h:215
static constexpr const char * logRank
use process rank as log message prefix
Definition: metaLoader.h:212
static constexpr const char * baseRunName
base run name to get input parameters
Definition: metaLoader.h:44
static constexpr const char * microdataEventColumn
if true then write event names in CSV file, ex: -Microdata.CsvEventColumn true
Definition: metaLoader.h:146
static constexpr const char * restartRunId
model run id to restart model run
Definition: metaLoader.h:35
static constexpr const char * traceToStamped
trace log to "stamped" file
Definition: metaLoader.h:197
static constexpr const char * microdataToDb
store entity microdata in database, ex: -Microdata.ToDb true
Definition: metaLoader.h:125
static constexpr const char * importPrefix
options started with "Import." used to specify parameters import from upstream model run,...
Definition: metaLoader.h:158
static constexpr const char * dbConnStr
database connection string
Definition: metaLoader.h:77
static constexpr const char * dbFromBin
SQLite database file is: directory/of/model/exe/ModelName.sqlite.
Definition: metaLoader.h:83
static constexpr const char * traceRank
trace use process rank as log message prefix
Definition: metaLoader.h:209
static constexpr const char * runNotePathSuffix
options ended with ".RunNotesPath" used to specify path to run notes file, ex: -EN....
Definition: metaLoader.h:185
static constexpr const char * importAll
options started with "MicrodataFilter." used to specify which entity filters, ex: -MicrodataFilter....
Definition: metaLoader.h:155
static constexpr const char * subValueCount
number of sub-values
Definition: metaLoader.h:23
static constexpr const char * csvSubValue
all parameter sub-values must be in parameter csv file
Definition: metaLoader.h:224
static constexpr const char * importModelIdPrefix
options started with "ImportId." used to specify model id to import parameters from last run of that ...
Definition: metaLoader.h:173
static constexpr const char * traceUseTs
trace use time-stamp in log "stamped" file name
Definition: metaLoader.h:200
static constexpr const char * microdataCsvDir
write entity microdata into CSV file, ex: -Microdata.CsvDir csv/output/dir
Definition: metaLoader.h:134
static constexpr const char * importDbPrefix
options started with "ImportDb." used to specify database connection string to import parameters from...
Definition: metaLoader.h:179
static constexpr const char * importRunNamePrefix
options started with "ImportRunName." used to specify run name to import parameters from,...
Definition: metaLoader.h:167
static constexpr const char * baseRunDigest
model run digest to get input parameters
Definition: metaLoader.h:50
static constexpr const char * runName
model run name in database
Definition: metaLoader.h:26
static constexpr const char * microdataAll
store all entities and all non-internal attributes, ex: -Microdata.All true
Definition: metaLoader.h:137
static constexpr const char * microdataToTrace
write entity microdata into trace output, ex: -Microdata.ToTrace true
Definition: metaLoader.h:131
static constexpr const char * importRunDigestPrefix
options started with "ImportRunDigest." used to specify run name to import parameters from,...
Definition: metaLoader.h:161
static constexpr const char * useIdParamValue
if true then parameter value is enum id, default: enum code
Definition: metaLoader.h:101
static constexpr const char * importModelDigestPrefix
options started with "ImportDigest." used to specify model digest to import parameters from last run ...
Definition: metaLoader.h:170
static constexpr const char * progressPercent
if positive then used for simulation progress reporting, ex: every 10%
Definition: metaLoader.h:104
static constexpr const char * allValue
all value for any option
Definition: metaLoader.h:230
static constexpr const char * runDescrSuffix
options ended with ".RunDescription" used to specify run decsription, ex: -EN.RunDescription "run mod...
Definition: metaLoader.h:182
static constexpr const char * taskRunName
modeling task run name in database
Definition: metaLoader.h:59
static constexpr const char * taskName
modeling task name
Definition: metaLoader.h:56
static constexpr const char * traceToConsole
trace log to console
Definition: metaLoader.h:188
static constexpr const char * runCreated
read-only option, current model run create timestamp, ex: 2018_11_10_22_47_46_076
Definition: metaLoader.h:32
static constexpr const char * microdataInternal
allow to use internal attributes, ex: -Microdata.UseInternal true
Definition: metaLoader.h:140
static constexpr const char * baseRunId
model run id to get input parameters
Definition: metaLoader.h:47
static constexpr const char * dbSqlite
SQLite database file path.
Definition: metaLoader.h:80
static constexpr const char * taskWait
modeling task under external supervision
Definition: metaLoader.h:65
static constexpr const char * dbSubValue
sub-value of parameter must be in the input workset
Definition: metaLoader.h:218
static constexpr const char * notOnRoot
if true then do not run modeling threads at root process
Definition: metaLoader.h:74
static constexpr const char * defaultValue
default value for any option
Definition: metaLoader.h:227
static constexpr const char * subFromPrefix
options started with "SubFrom." used to specify where to get sub-values of input parameter or group o...
Definition: metaLoader.h:113
static constexpr const char * runId
read-only option, current model run id
Definition: metaLoader.h:29
static constexpr const char * microdataPrefix
options started with "Microdata." used to specify which entity attributes to store,...
Definition: metaLoader.h:149
static constexpr const char * traceFilePath
trace log file path
Definition: metaLoader.h:194
static constexpr const char * microdataToCsv
write entity microdata into CSV file, ex: -Microdata.ToCsv true
Definition: metaLoader.h:128
static constexpr const char * tableRetain
include only specified output tables or tables group into run results, ex: -Tables....
Definition: metaLoader.h:122
static constexpr const char * importExprPrefix
options started with "ImportExpr." used to specify expression name to import from output table,...
Definition: metaLoader.h:176
static constexpr const char * traceNoMsgTime
do not prefix trace log messages with date-time
Definition: metaLoader.h:206
static constexpr const char * profile
profile name to get run options
Definition: metaLoader.h:68
static constexpr const char * setName
working set name to get input parameters
Definition: metaLoader.h:41
static constexpr const char * taskId
modeling task id
Definition: metaLoader.h:53
static constexpr const char * taskRunId
read-only option, modeling task run id
Definition: metaLoader.h:62
static constexpr const char * progressStep
if positive then used for simulation progress reporting, ex: every 1000 cases or every 0....
Definition: metaLoader.h:107
keys for model run options (short form)
Definition: metaLoader.h:235
static constexpr const char * dbSqlite
short name for SQLite database file path: -db fileName.sqlite
Definition: metaLoader.h:240
static constexpr const char * setName
short name for: -s working set name to get input parameters
Definition: metaLoader.h:243
static constexpr const char * iniFile
short name for ini file path: -ini fileName.ini
Definition: metaLoader.h:237
static constexpr const char * paramDir
short name for: -p dir/to/read/input/parameter.csv
Definition: metaLoader.h:246