ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/fem_solution.h
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/fem_solution.h
File size: 2528 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuillière et Vincent FRANCOIS
5     // Département de Génie Mécanique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du département
8     // de génie mécanique de l'Université du Québec à
9     // Trois Rivières
10     // Les librairies ne peuvent être utilisées sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // fem_solution.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef __FEMSOLUTION_
24     #define __FEMSOLUTION_
25    
26    
27     #ifdef WINDOWS_VERSION
28     #ifdef BUILT_DLL_GEOMETRIE
29     #define DLLPORTGEOMETRIE __declspec(dllexport)
30     #else
31     #define DLLPORTGEOMETRIE __declspec(dllimport)
32     #endif
33     #else
34     #define DLLPORTGEOMETRIE
35     #endif
36    
37    
38     #ifdef BORLANDCPP
39     #include <map.h>
40     #include <set.h>
41     #else
42     #include <map>
43     #include <set>
44     #endif
45    
46     #include "mg_identificateur.h"
47    
48    
49    
50    
51    
52     DLLPORTGEOMETRIE std::ostream& operator << (std::ostream& o,class MG_SOLUTION& sol);
53    
54    
55     class DLLPORTGEOMETRIE FEM_SOLUTION : public MG_IDENTIFICATEUR
56     {
57     public:
58     FEM_SOLUTION(class FEM_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol);
59     FEM_SOLUTION(unsigned long num,FEM_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol);
60     virtual ~FEM_SOLUTION();
61    
62     double lire(int i,int j);
63     void ecrire(int i,int j,double val);
64     void active_solution(int num);
65     void change_legende(int num,std::string val);
66     std::string get_legende(int num);
67     int get_nb_champ(void);
68     FEM_MAILLAGE* get_maillage(void);
69     double get_legende_min(void);
70     double get_legende_max(void);
71     void efface(void);
72     std::string get_nom(void);
73    
74     virtual void enregistrer(std::ostream& o);
75    
76     friend std::ostream& operator << (std::ostream& o,FEM_SOLUTION& maillage);
77    
78     private:
79     char *nom_fichier;
80     int nb_champs;
81     FILE* in;
82     FEM_MAILLAGE* femmai;
83     double solmin;
84     double solmax;
85     std::string* legende;
86     std::string nomsolution;
87     };
88    
89    
90    
91     #endif
92    
93