ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/addin/outil/src/ot_parametres.h
Revision: 1132
Committed: Fri Feb 16 15:46:17 2024 UTC (18 months, 1 week ago) by francois
Content type: text/plain
File size: 1458 byte(s)
Log Message:
parametrage de la boite dans l'homogéinisation
Integration de la version de 15.6 de code aster dans un singularity

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 void ajouter(std::string chaine,std::vector<double> &valeur,int typep,std::string aide);
29 void ajouter(std::string chaine);
30 void change_valeur(std::string chaine,double val,int num=0);
31 void change_valeur(std::string chaine,std::string val);
32 double get_valeur(std::string chaine,int num=0);
33 int get_type(std::string chaine);
34 std::string get_nom(std::string chaine);
35 int get_num_param(std::string chaine);
36 void enregistrer(char *nom);
37 int lire(char *nom);
38 void vide(void);
39 int get_nb(void);
40 double get_valeur(int num);
41 std::string get_nom(int num);
42 int get_type(int num);
43
44 private:
45 std::vector<std::string> nom_param;
46 std::vector<std::string> valeur_param;
47 std::vector<std::string> aide_param;
48 std::vector<std::string> params;
49 std::vector<int> type_param;
50
51 };
52
53
54
55
56
57
58
59 #endif