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 |