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 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

# User Rev Content
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 283 double get_valeur(std::string chaine);
29 francois 396 int get_type(std::string chaine);
30 francois 283 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 francois 396 int get_type(int num);
38    
39 francois 258 private:
40 francois 283 std::vector<std::string> nom_param;
41     std::vector<std::string> valeur_param;
42     std::vector<std::string> aide_param;
43 francois 396 std::vector<int> type_param;
44 francois 258
45     };
46    
47    
48    
49    
50    
51    
52    
53 francois 283 #endif