1 | /*! \file Model.h
|
---|
2 | * \brief: header file for model object
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _MODEL_H_
|
---|
6 | #define _MODEL_H_
|
---|
7 |
|
---|
8 | #include "../include/types.h"
|
---|
9 |
|
---|
10 | struct FemModel;
|
---|
11 | class DataSet;
|
---|
12 |
|
---|
13 | class Model{
|
---|
14 |
|
---|
15 | private:
|
---|
16 |
|
---|
17 | /*femmodels for each formulation: dynamic, can have as many*/
|
---|
18 | DataSet* femmodels;
|
---|
19 |
|
---|
20 | /*active femmodel: points to a FemModel in the femmodels dataset*/
|
---|
21 | FemModel* active;
|
---|
22 |
|
---|
23 | public:
|
---|
24 |
|
---|
25 | Model();
|
---|
26 | ~Model();
|
---|
27 |
|
---|
28 | void Echo();
|
---|
29 | void DeepEcho();
|
---|
30 |
|
---|
31 | void AddFormulation(ConstDataHandle MODEL, int analysis_type,int sub_analysis_type);
|
---|
32 | void AddFormulation(ConstDataHandle MODEL, int analysis_type);
|
---|
33 |
|
---|
34 | /*all overloaded forms of the FindParam routine: */
|
---|
35 | int FindParam(int* pparameter,char* parametername);
|
---|
36 | int FindParam(double* pparameter,char* parametername);
|
---|
37 | int FindParam(double** pparameter,char* parametername);
|
---|
38 | int FindParam(char** pparameter,char* parametername);
|
---|
39 |
|
---|
40 | int FindParam(int* pparameter,char* parametername,int analysis_type,int sub_analysis_type);
|
---|
41 | int FindParam(double* pparameter,char* parametername,int analysis_type,int sub_analysis_type);
|
---|
42 | int FindParam(double** pparameter,char* parametername,int analysis_type,int sub_analysis_type);
|
---|
43 | int FindParam(char** pparameter,char* parametername,int analysis_type,int sub_analysis_type);
|
---|
44 |
|
---|
45 | int FindParam(int* pparameter,char* parametername,int analysis_type);
|
---|
46 | int FindParam(double* pparameter,char* parametername,int analysis_type);
|
---|
47 | int FindParam(double** pparameter,char* parametername,int analysis_type);
|
---|
48 | int FindParam(char** pparameter,char* parametername,int analysis_type);
|
---|
49 |
|
---|
50 | FemModel* GetFormulation(int analysis_type,int sub_analysis_type);
|
---|
51 | FemModel* GetFormulation(int analysis_type);
|
---|
52 |
|
---|
53 | FemModel* GetActiveFormulation();
|
---|
54 | void* SetActiveFormulation(FemModel* femmodel);
|
---|
55 |
|
---|
56 | };
|
---|
57 | #endif /* _MODEL_H */
|
---|