ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/outil/src/ot_parametres.h
Revision: 283
Committed: Tue Sep 13 21:11:20 2011 UTC (13 years, 8 months ago) by francois
Content type: text/plain
File size: 956 byte(s)
Log Message:
structure de l'écriture

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    
26 francois 283 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     int get_nb(void);
34     double get_valeur(int num);
35     std::string get_nom(int num);
36 francois 258
37     private:
38 francois 283 std::vector<std::string> nom_param;
39     std::vector<std::string> valeur_param;
40     std::vector<std::string> aide_param;
41 francois 258
42    
43     };
44    
45    
46    
47    
48    
49    
50    
51 francois 283 #endif