ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/optimisation/src/mgopt_parametre.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (15 years, 1 month ago) by francois
Content type: text/plain
File size: 931 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# Content
1 #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 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