1 |
francois |
239 |
#ifndef opt_parametreH |
2 |
|
|
#define opt_parametreH |
3 |
|
|
|
4 |
|
|
#ifdef WINDOWS_VERSION |
5 |
|
|
#ifdef BUILT_DLL_OPTIMISATION |
6 |
|
|
#define DLLPORTOPTIMISATION __declspec(dllexport) |
7 |
|
|
#else |
8 |
|
|
#define DLLPORTOPTIMISATION __declspec(dllimport) |
9 |
|
|
#endif |
10 |
|
|
#else |
11 |
|
|
#define DLLPORTOPTIMISATION |
12 |
|
|
#endif |
13 |
|
|
|
14 |
|
|
#include <vector> |
15 |
|
|
#include <string> |
16 |
|
|
#include "tpl_octree.h" |
17 |
|
|
|
18 |
|
|
class DLLPORTOPTIMISATION MGOPT_PARAMETRE |
19 |
|
|
{ |
20 |
|
|
public: |
21 |
|
|
MGOPT_PARAMETRE(); |
22 |
|
|
MGOPT_PARAMETRE(MGOPT_PARAMETRE &mdd); |
23 |
|
|
~MGOPT_PARAMETRE(); |
24 |
|
|
|
25 |
|
|
|
26 |
francois |
243 |
void ajouter(std::string chaine,double valeur,std::string aide=""); |
27 |
|
|
void ajouter(std::string chaine,std::string valeurstring,std::string aide=""); |
28 |
francois |
239 |
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 |
francois |
243 |
std::vector<std::string> aide_param; |
38 |
francois |
239 |
|
39 |
|
|
|
40 |
|
|
}; |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
#endif |