ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_solution.h
Revision: 27
Committed: Thu Jul 5 15:26:40 2007 UTC (17 years, 10 months ago) by foucault
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/mg_solution.h
File size: 2624 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     // mg_solution.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef __MGSOLUTION_
24     #define __MGSOLUTION_
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 foucault 27 // necessaire pour definir le type FILE dans GCC
47     #include <stdio.h>
48    
49 5 #include "mg_identificateur.h"
50    
51    
52     const unsigned int SOL_EXISTANTE=0;
53    
54    
55    
56     DLLPORTGEOMETRIE std::ostream& operator << (std::ostream& o,class MG_SOLUTION& sol);
57    
58    
59     class DLLPORTGEOMETRIE MG_SOLUTION : public MG_IDENTIFICATEUR
60     {
61     public:
62     MG_SOLUTION(class MG_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol);
63     MG_SOLUTION(unsigned long num,MG_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol);
64     virtual ~MG_SOLUTION();
65    
66     double lire(int i,int j);
67     void ecrire(int i,int j,double val);
68     void active_solution(int num);
69     void change_legende(int num,std::string val);
70     std::string get_legende(int num);
71     int get_nb_champ(void);
72     MG_MAILLAGE* get_maillage(void);
73     double get_legende_min(void);
74     double get_legende_max(void);
75     void efface(void);
76     std::string get_nom(void);
77    
78     virtual void enregistrer(std::ostream& o);
79    
80     friend std::ostream& operator << (std::ostream& o,MG_SOLUTION& maillage);
81    
82     private:
83     char *nom_fichier;
84     int nb_champs;
85     FILE* in;
86     MG_MAILLAGE* mgmai;
87     double solmin;
88     double solmax;
89     std::string* legende;
90     std::string nomsolution;
91     };
92    
93    
94    
95     #endif
96    
97