MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
ot_chaine.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_chaine.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:54:00 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifndef ot_CHAINE
23 #define ot_CHAINE
24 
25 #include <vector>
26 #include <string>
27 #include <map>
28 
29 class OT_CHAINE
30 {
31 public:
32  OT_CHAINE();
33  OT_CHAINE(OT_CHAINE &mdd);
34  ~OT_CHAINE();
35 
36 
37  void mg_fprintf(FILE *in,char *message);
38  void ini_mg_fprintf(int pos,char c);
39  std::string get_base(unsigned long val,int base);
40  unsigned long get_base(std::string val,int base);
41  unsigned long atoi(std::string val,int base);
42 
43  std::vector<std::string> split(std::string chaine,char c);
44  std::string upcase(std::string chaine);
45 private:
46  int longmax;
48  char transpose[36];
49  std::map<char,int> digit;
50 };
51 
52 
53 
54 
55 
56 
57 
58 #endif
OT_CHAINE::get_base
std::string get_base(unsigned long val, int base)
Definition: ot_chaine.cpp:152
OT_CHAINE::split
std::vector< std::string > split(std::string chaine, char c)
Definition: ot_chaine.cpp:187
OT_CHAINE::transpose
char transpose[36]
Definition: ot_chaine.h:48
OT_CHAINE::digit
std::map< char, int > digit
Definition: ot_chaine.h:49
OT_CHAINE
Definition: ot_chaine.h:29
OT_CHAINE::mg_fprintf
void mg_fprintf(FILE *in, char *message)
Definition: ot_chaine.cpp:135
OT_CHAINE::charseparateur
char charseparateur
Definition: ot_chaine.h:47
OT_CHAINE::OT_CHAINE
OT_CHAINE()
Definition: ot_chaine.cpp:35
OT_CHAINE::upcase
std::string upcase(std::string chaine)
Definition: ot_chaine.cpp:204
OT_CHAINE::~OT_CHAINE
~OT_CHAINE()
Definition: ot_chaine.cpp:121
OT_CHAINE::ini_mg_fprintf
void ini_mg_fprintf(int pos, char c)
Definition: ot_chaine.cpp:128
OT_CHAINE::atoi
unsigned long atoi(std::string val, int base)
Definition: ot_chaine.cpp:178
OT_CHAINE::longmax
int longmax
Definition: ot_chaine.h:46