1 |
//------------------------------------------------------------ |
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_file.h |
16 |
// |
17 |
//------------------------------------------------------------ |
18 |
//------------------------------------------------------------ |
19 |
// COPYRIGHT 2000 |
20 |
// Version du 02/03/2006 � 11H22 |
21 |
//------------------------------------------------------------ |
22 |
//------------------------------------------------------------ |
23 |
|
24 |
#ifndef mg_fileH |
25 |
#define mg_fileH |
26 |
//--------------------------------------------------------------------------- |
27 |
|
28 |
#include "mg_gestionnaire.h" |
29 |
|
30 |
|
31 |
#ifdef WINDOWS_VERSION |
32 |
#ifdef BUILT_DLL_FICHIER |
33 |
#define DLLPORTFICHIER __declspec(dllexport) |
34 |
#else |
35 |
#define DLLPORTFICHIER __declspec(dllimport) |
36 |
#endif |
37 |
#else |
38 |
#define DLLPORTFICHIER |
39 |
#endif |
40 |
|
41 |
class DLLPORTFICHIER MG_FILE:public MG_GESTIONNAIRE |
42 |
{ |
43 |
public: |
44 |
MG_FILE(char* chemin); |
45 |
MG_FILE(); |
46 |
virtual ~MG_FILE(); |
47 |
int get_code_de_lecture(void); |
48 |
|
49 |
protected: |
50 |
int code_de_lecture; |
51 |
virtual long cid(std::string str); |
52 |
virtual int lire(char* chemin); |
53 |
virtual void lire_NOEUD(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
54 |
virtual void lire_SEGMENT(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
55 |
virtual void lire_TRIANGLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
56 |
virtual void lire_QUADRANGLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
57 |
virtual void lire_TETRA(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
58 |
virtual void lire_HEXA(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
59 |
virtual void lire_PENTA(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_MAILLAGE *mgmai,MG_GEOMETRIE *mggeo); |
60 |
virtual void lire_ccf(double version,int nb,int numparam,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],MG_ELEMENT_TOPOLOGIQUE *ele); |
61 |
|
62 |
virtual void lire_MG_SOUS_GEOMETRIE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
63 |
virtual void lire_MG_VOLUME(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo,std::vector<unsigned long> &volumemince); |
64 |
virtual void lire_MG_COQUILLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo); |
65 |
virtual void lire_MG_FACE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo); |
66 |
virtual void lire_MG_BOUCLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo); |
67 |
virtual void lire_MG_ARETE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo); |
68 |
virtual void lire_MG_SOMMET(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data,MG_GEOMETRIE *mggeo); |
69 |
|
70 |
virtual void lire_MG_CG_MODELE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
71 |
virtual void lire_MG_CG_ASSEMBLAGE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
72 |
virtual void lire_MG_CG_FORME_ARETE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
73 |
virtual void lire_MG_CG_FORME_ARETE_DROITE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
74 |
virtual void lire_MG_CG_FORME_VOLUME(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
75 |
virtual void lire_MG_CG_FORME_VOLUME_BOITE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
76 |
virtual void lire_MG_CG_FORME_VOLUME_SPHERE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
77 |
virtual void lire_MG_CG_FORME_VOLUME_ELLIPSOIDE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
78 |
virtual void lire_MG_CG_FORME_VOLUME_CYLINDRE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
79 |
virtual void lire_MG_CG_FORME_VOLUME_CONE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
80 |
virtual void lire_MG_CG_FORME_VOLUME_TORE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
81 |
virtual void lire_MG_CG_FORME_MULTIPLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
82 |
virtual void lire_MG_CG_FORME_MULTI_VOLUME(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
83 |
virtual void lire_MG_CG_OP_BOOL_UNION(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
84 |
virtual void lire_MG_CG_OP_BOOL_DIFFERENCE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
85 |
virtual void lire_MG_CG_OP_BOOL_INTERSECTION(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
86 |
virtual void lire_MG_CG_OP_BOOL_FRAGMENT(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
87 |
virtual void lire_MG_CG_OP_INCLUSION_MATRICE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
88 |
virtual void lire_MG_CG_OP_TRANSF_ROTATION(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
89 |
virtual void lire_MG_CG_OP_TRANSF_TRANSLATION(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
90 |
virtual void lire_MG_CG_OP_TRANSF_ECHELLE(long id,class PARSE& parse,class PARS_ARGUMENT (¶m)[100],std::string& data); |
91 |
|
92 |
}; |
93 |
|
94 |
|
95 |
|
96 |
|
97 |
#endif |
98 |
|
99 |
|