1 |
francois |
258 |
#ifndef ot_parametresH |
2 |
|
|
#define ot_parametresH |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
#ifdef WINDOWS_VERSION |
6 |
|
|
#ifdef BUILT_DLL_OUTIL |
7 |
|
|
#define DLLPORTOUTIL __declspec(dllexport) |
8 |
|
|
#else |
9 |
|
|
#define DLLPORTOUTIL __declspec(dllimport) |
10 |
|
|
#endif |
11 |
|
|
#else |
12 |
|
|
#define DLLPORTOUTIL |
13 |
|
|
#endif |
14 |
|
|
|
15 |
|
|
#include <vector> |
16 |
|
|
#include <string> |
17 |
|
|
|
18 |
|
|
class DLLPORTOUTIL OT_PARAMETRES |
19 |
|
|
{ |
20 |
|
|
public: |
21 |
|
|
OT_PARAMETRES(); |
22 |
|
|
OT_PARAMETRES(OT_PARAMETRES &mdd); |
23 |
|
|
~OT_PARAMETRES(); |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
void ajouter(std::string chaine,double valeur,std::string aide=""); |
27 |
|
|
void ajouter(std::string chaine,std::string valeurstring,std::string aide=""); |
28 |
|
|
double get_valeur(std::string chaine); |
29 |
|
|
std::string get_nom(std::string chaine); |
30 |
|
|
void enregistrer(char *nom); |
31 |
|
|
void lire(char *nom); |
32 |
|
|
void vide(void); |
33 |
|
|
|
34 |
|
|
private: |
35 |
|
|
std::vector<std::string> nom_param; |
36 |
|
|
std::vector<std::string> valeur_param; |
37 |
|
|
std::vector<std::string> aide_param; |
38 |
|
|
|
39 |
|
|
|
40 |
|
|
}; |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
#endif |