1 |
francois |
1158 |
//####//------------------------------------------------------------ |
2 |
|
|
//####//------------------------------------------------------------ |
3 |
|
|
//####// MAGiC |
4 |
|
|
//####// Jean Christophe Cuilliere et Vincent FRANCOIS |
5 |
|
|
//####// Departement de Genie Mecanique - UQTR |
6 |
|
|
//####//------------------------------------------------------------ |
7 |
|
|
//####// MAGIC est un projet de recherche de l equipe ERICCA |
8 |
|
|
//####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres |
9 |
|
|
//####// http://www.uqtr.ca/ericca |
10 |
|
|
//####// http://www.uqtr.ca/ |
11 |
|
|
//####//------------------------------------------------------------ |
12 |
|
|
//####//------------------------------------------------------------ |
13 |
|
|
//####// |
14 |
|
|
//####// mc_gestionnaire.h |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 17:15:00 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
francois |
283 |
|
23 |
francois |
296 |
#ifndef mc_gestionnaireH |
24 |
|
|
#define mc_gestionnaireH |
25 |
francois |
283 |
|
26 |
francois |
1158 |
|
27 |
francois |
283 |
#include "tpl_liste_entite.h" |
28 |
|
|
#include <string> |
29 |
francois |
296 |
#include <map> |
30 |
francois |
283 |
|
31 |
francois |
1158 |
class MC_GESTIONNAIRE |
32 |
francois |
283 |
{ |
33 |
|
|
public: |
34 |
francois |
296 |
MC_GESTIONNAIRE(char* path); |
35 |
|
|
MC_GESTIONNAIRE(); |
36 |
|
|
~MC_GESTIONNAIRE(); |
37 |
francois |
283 |
|
38 |
francois |
296 |
class MC_MATERIAU* ajouter_materiau(std::string nom,std::string descrip); |
39 |
francois |
283 |
int get_nb_materiau(); |
40 |
francois |
296 |
class MC_MATERIAU* get_materiau(int num); |
41 |
francois |
283 |
char* get_chemin(); |
42 |
|
|
void lire(void); |
43 |
francois |
296 |
|
44 |
|
|
int existe(std::string code); |
45 |
|
|
std::string get_description(std::string code); |
46 |
|
|
int get_description(std::string &code,std::string &description,int init=0); |
47 |
francois |
283 |
|
48 |
|
|
private: |
49 |
francois |
296 |
TPL_LISTE_ENTITE<class MC_MATERIAU*> lst_mat; |
50 |
francois |
283 |
std::string chemin; |
51 |
francois |
296 |
std::map<std::string,std::string,std::less<std::string> > mecaliste; |
52 |
|
|
|
53 |
francois |
283 |
}; |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
#endif |