MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
parse.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 //####// parse.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:53:59 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifndef parseH
23 #define parseH
24 
25 
26 
27 #include <vector>
28 #include <stdio.h>
29 
30 
31 
32 class PARSE
33 {
34 public:
35  PARSE();
36  ~PARSE();
37 
38 
39  void decode(char *code,std::string masque,class PARS_ARGUMENT *arg);
40  void decode(const char *code,std::string masque,class PARS_ARGUMENT *arg);
41 
42  std::string lire(FILE *in,char fin,int *ierr);
43 
44 private:
45  void decode_old(char *code,char *mask,class PARS_ARGUMENT *arg);
46  void decode_old(const char *code,char *mask,class PARS_ARGUMENT *arg);
47  int Match(char *code,char *mask,char **param);
48  int MatchC(char **ptrC,char **ptrP,char cFin);
49  int Ouverture(char c);
50  char Fermeture(int i);
51 };
52 
53 
54 
55 
56 
57 
58 
59 #endif
PARSE::MatchC
int MatchC(char **ptrC, char **ptrP, char cFin)
Definition: parse.cpp:203
PARSE::~PARSE
~PARSE()
Definition: parse.cpp:45
PARSE::Ouverture
int Ouverture(char c)
Definition: parse.cpp:232
PARSE::Fermeture
char Fermeture(int i)
Definition: parse.cpp:244
PARSE::decode
void decode(char *code, std::string masque, class PARS_ARGUMENT *arg)
Definition: parse.cpp:71
PARSE
Definition: parse.h:32
PARSE::PARSE
PARSE()
Definition: parse.cpp:41
PARS_ARGUMENT
Definition: pars_argument.h:37
PARSE::decode_old
void decode_old(char *code, char *mask, class PARS_ARGUMENT *arg)
Definition: parse.cpp:88
PARSE::lire
std::string lire(FILE *in, char fin, int *ierr)
Definition: parse.cpp:50
PARSE::Match
int Match(char *code, char *mask, char **param)
Definition: parse.cpp:169