1 |
francois |
283 |
//------------------------------------------------------------ |
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 |
|
|
// mt_gestionnaire.h |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H23 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
francois |
296 |
#ifndef mc_gestionnaireH |
25 |
|
|
#define mc_gestionnaireH |
26 |
francois |
283 |
//--------------------------------------------------------------------------- |
27 |
|
|
#ifdef WINDOWS_VERSION |
28 |
|
|
#ifdef BUILT_DLL_MAT |
29 |
|
|
#define DLLPORTMAT __declspec(dllexport) |
30 |
|
|
#else |
31 |
|
|
#define DLLPORTMAT __declspec(dllimport) |
32 |
|
|
#endif |
33 |
|
|
#else |
34 |
|
|
#define DLLPORTMAT |
35 |
|
|
#endif |
36 |
|
|
|
37 |
|
|
#include "tpl_liste_entite.h" |
38 |
|
|
#include <string> |
39 |
francois |
296 |
#include <map> |
40 |
francois |
283 |
|
41 |
francois |
296 |
class DLLPORTMAT MC_GESTIONNAIRE |
42 |
francois |
283 |
{ |
43 |
|
|
public: |
44 |
francois |
296 |
MC_GESTIONNAIRE(char* path); |
45 |
|
|
MC_GESTIONNAIRE(); |
46 |
|
|
~MC_GESTIONNAIRE(); |
47 |
francois |
283 |
|
48 |
francois |
296 |
class MC_MATERIAU* ajouter_materiau(std::string nom,std::string descrip); |
49 |
francois |
283 |
int get_nb_materiau(); |
50 |
francois |
296 |
class MC_MATERIAU* get_materiau(int num); |
51 |
francois |
283 |
char* get_chemin(); |
52 |
|
|
void lire(void); |
53 |
francois |
296 |
|
54 |
|
|
int existe(std::string code); |
55 |
|
|
std::string get_description(std::string code); |
56 |
|
|
int get_description(std::string &code,std::string &description,int init=0); |
57 |
francois |
283 |
|
58 |
|
|
private: |
59 |
francois |
296 |
TPL_LISTE_ENTITE<class MC_MATERIAU*> lst_mat; |
60 |
francois |
283 |
std::string chemin; |
61 |
francois |
296 |
std::map<std::string,std::string,std::less<std::string> > mecaliste; |
62 |
|
|
|
63 |
francois |
283 |
}; |
64 |
|
|
|
65 |
|
|
|
66 |
|
|
#endif |