source: issm/trunk/src/c/objects/Model.h@ 1886

Last change on this file since 1886 was 1886, checked in by Eric.Larour, 16 years ago

NoneAnalysisEnum not necessary to add a formulation

File size: 1.8 KB
Line 
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
10struct FemModel;
11class DataSet;
12
13class 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 */
Note: See TracBrowser for help on using the repository browser.