MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
ot_parametres.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// ot_parametres.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:53:59 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifndef ot_parametresH
23 #define ot_parametresH
24 
25 
26 
27 
28 #include <vector>
29 #include <string>
30 
32 {
33 public:
34  OT_PARAMETRES();
37 
38  enum type {DOUBLE=1,STRING=2};
39  void ajouter(std::string chaine,double valeur,int typep,std::string aide="");
40  void ajouter(std::string chaine,std::string valeurstring,int typep,std::string aide="");
41  void ajouter(std::string chaine,std::vector<double> &valeur,int typep,std::string aide);
42  void ajouter(std::string chaine);
43  void change_valeur(std::string chaine,double val,int num=0);
44  void change_valeur(std::string chaine,std::string val);
45  double get_valeur(std::string chaine,int num=0);
46  int get_type(std::string chaine);
47  std::string get_nom(std::string chaine);
48  int get_num_param(std::string chaine);
49  void enregistrer(char *nom);
50  int lire(char *nom);
51  void vide(void);
52  int get_nb(void);
53  double get_valeur(int num);
54  std::string get_nom(int num);
55  int get_type(int num);
56 
57 private:
58  std::vector<std::string> nom_param;
59  std::vector<std::string> valeur_param;
60  std::vector<std::string> aide_param;
61  std::vector<std::string> params;
62  std::vector<int> type_param;
63 
64 };
65 
66 
67 
68 
69 
70 
71 
72 #endif
OT_PARAMETRES::~OT_PARAMETRES
~OT_PARAMETRES()
Definition: ot_parametres.cpp:56
OT_PARAMETRES::get_valeur
double get_valeur(std::string chaine, int num=0)
Definition: ot_parametres.cpp:191
OT_PARAMETRES::type_param
std::vector< int > type_param
Definition: ot_parametres.h:62
OT_PARAMETRES::STRING
@ STRING
Definition: ot_parametres.h:38
OT_PARAMETRES::ajouter
void ajouter(std::string chaine, double valeur, int typep, std::string aide="")
Definition: ot_parametres.cpp:61
OT_PARAMETRES::params
std::vector< std::string > params
Definition: ot_parametres.h:61
OT_PARAMETRES::type
type
Definition: ot_parametres.h:38
OT_PARAMETRES::OT_PARAMETRES
OT_PARAMETRES()
Definition: ot_parametres.cpp:39
OT_PARAMETRES::valeur_param
std::vector< std::string > valeur_param
Definition: ot_parametres.h:59
OT_PARAMETRES::nom_param
std::vector< std::string > nom_param
Definition: ot_parametres.h:58
OT_PARAMETRES::get_nom
std::string get_nom(std::string chaine)
Definition: ot_parametres.cpp:266
OT_PARAMETRES::DOUBLE
@ DOUBLE
Definition: ot_parametres.h:38
OT_PARAMETRES::get_type
int get_type(std::string chaine)
Definition: ot_parametres.cpp:281
OT_PARAMETRES
Definition: ot_parametres.h:31
OT_PARAMETRES::enregistrer
void enregistrer(char *nom)
Definition: ot_parametres.cpp:132
OT_PARAMETRES::get_nb
int get_nb(void)
Definition: ot_parametres.cpp:311
OT_PARAMETRES::aide_param
std::vector< std::string > aide_param
Definition: ot_parametres.h:60
OT_PARAMETRES::get_num_param
int get_num_param(std::string chaine)
Definition: ot_parametres.cpp:250
OT_PARAMETRES::vide
void vide(void)
Definition: ot_parametres.cpp:317
OT_PARAMETRES::lire
int lire(char *nom)
Definition: ot_parametres.cpp:144
OT_PARAMETRES::change_valeur
void change_valeur(std::string chaine, double val, int num=0)
Definition: ot_parametres.cpp:210