ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/outil/src/ot_parametres.h
Revision: 396
Committed: Thu Apr 18 15:09:10 2013 UTC (12 years, 4 months ago) by francois
Content type: text/plain
File size: 1113 byte(s)
Log Message:
Ajout du type pour OT_PARMETRES afin de pourvoir les reecrire comme y faut

File Contents

# Content
1 #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 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 double get_valeur(std::string chaine);
29 int get_type(std::string chaine);
30 std::string get_nom(std::string chaine);
31 void enregistrer(char *nom);
32 void lire(char *nom);
33 void vide(void);
34 int get_nb(void);
35 double get_valeur(int num);
36 std::string get_nom(int num);
37 int get_type(int num);
38
39 private:
40 std::vector<std::string> nom_param;
41 std::vector<std::string> valeur_param;
42 std::vector<std::string> aide_param;
43 std::vector<int> type_param;
44
45 };
46
47
48
49
50
51
52
53 #endif