OpenM++ runtime library (libopenm)
metaHolder.h
Go to the documentation of this file.
1 
5 // Copyright (c) 2013-2015 OpenM++
6 // This code is licensed under the MIT license (see LICENSE.txt for details)
7 
8 #ifndef META_HOLDER_H
9 #define META_HOLDER_H
10 
11 using namespace std;
12 
13 #include "libopenm/db/dbMetaRow.h"
14 #include "dbMetaTable.h"
15 
16 namespace openm
17 {
19  struct MetaHolder
20  {
21  public:
24 
26  unique_ptr<IModelDicTable> modelTable;
27 
29  unique_ptr<ITypeDicTable> typeDic;
30 
32  unique_ptr<ITypeEnumLstTable> typeEnumLst;
33 
35  unique_ptr<IParamDicTable> paramDic;
36 
38  unique_ptr<IParamDimsTable> paramDims;
39 
41  unique_ptr<ITableDicTable> tableDic;
42 
44  unique_ptr<ITableDimsTable> tableDims;
45 
47  unique_ptr<ITableAccTable> tableAcc;
48 
50  unique_ptr<ITableExprTable> tableExpr;
51 
53  MetaHolder(void) : modelRow(nullptr) { }
54  };
55 }
56 
57 #endif // META_HOLDER_H
const ModelDicRow * modelRow
model_dic row for the model
Definition: metaHolder.h:23
unique_ptr< IModelDicTable > modelTable
model_dic table rows
Definition: metaHolder.h:26
unique_ptr< ITableAccTable > tableAcc
table_acc table rows
Definition: metaHolder.h:47
unique_ptr< ITypeDicTable > typeDic
type_dic table rows
Definition: metaHolder.h:29
openM++ namespace
Definition: argReader.cpp:16
unique_ptr< ITypeEnumLstTable > typeEnumLst
type_enum_lst table rows
Definition: metaHolder.h:32
unique_ptr< ITableDimsTable > tableDims
table_dims table rows
Definition: metaHolder.h:44
OpenM++ data library: db tables for model metadata.
Holder for model metadata core part (not include model text).
Definition: metaHolder.h:19
unique_ptr< IParamDicTable > paramDic
param_dic table rows
Definition: metaHolder.h:35
unique_ptr< ITableExprTable > tableExpr
table_expr table rows
Definition: metaHolder.h:50
unique_ptr< IParamDimsTable > paramDims
param_dims table rows
Definition: metaHolder.h:38
unique_ptr< ITableDicTable > tableDic
table_dic table rows
Definition: metaHolder.h:41
OpenM++ data library: db rows of model metadata tables.
model_dic table row.
Definition: dbMetaRow.h:114
MetaHolder(void)
create empty model metadata holder
Definition: metaHolder.h:53