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 |
|
|
#ifndef mt_gestionnaireH |
25 |
|
|
#define mt_gestionnaireH |
26 |
|
|
//--------------------------------------------------------------------------- |
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 |
|
|
|
40 |
|
|
class DLLPORTMAT MT_GESTIONNAIRE |
41 |
|
|
{ |
42 |
|
|
public: |
43 |
|
|
MT_GESTIONNAIRE(char* path); |
44 |
|
|
~MT_GESTIONNAIRE(); |
45 |
|
|
|
46 |
|
|
class MT_MATERIAU* ajouter_materiau(std::string nom,std::string descrip); |
47 |
|
|
int get_nb_materiau(); |
48 |
|
|
class MT_MATERIAU* get_materiau(int num); |
49 |
|
|
char* get_chemin(); |
50 |
|
|
void lire(void); |
51 |
|
|
|
52 |
|
|
private: |
53 |
|
|
TPL_LISTE_ENTITE<class MT_MATERIAU*> lst_mat; |
54 |
|
|
std::string chemin; |
55 |
|
|
}; |
56 |
|
|
|
57 |
|
|
|
58 |
|
|
#endif |