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