Salome HOME
7343d6eaa46aab70694313cd97371ea4abb61e10
[plugins/ghs3dprlplugin.git] / src / tepal2med / ghs3dprl_msg_parser.h
1
2 #ifndef GHS3DPRL_MSG_PARSER_H
3 #define GHS3DPRL_MSG_PARSER_H
4
5 #include "ghs3dprl_mesh_wrap.h"
6 #include <qxml.h>
7
8 /*//Med File V 2.2 attributes
9 #undef MED_H
10 #undef MED_PROTO_H
11 namespace med_2_2 {
12   extern "C" {
13 #include <med.h>
14 #include <med_proto.h>
15   }
16 }
17 */
18
19 class ghs3dprl_msg_parser : public QXmlDefaultHandler
20 {
21 public:
22    bool startDocument();
23    bool startElement(const QString&,
24                      const QString&,
25                      const QString& ,
26                      const QXmlAttributes&);
27    bool endElement(const QString&,
28                    const QString&,
29                    const QString&);
30    bool characters(const QString&);
31
32    ghs3dprl_mesh_wrap *mailw; //results maillages wrap
33    bool verbose;
34
35 private:
36    QString indent,
37            typel,shorttypel,
38            sendreceive,shortsendreceive,
39            begin,
40            version,
41            neighbours,
42            count,
43            neighbour,
44            indice,
45            send,
46            vertices,
47            edges,
48            faces,
49            elements,
50            receive;
51
52    long etat,
53         neighbourscount,neighbourcourant,neighbourindice,
54         nbcount; //nb faces vertices edges elements expected
55 };
56
57 #endif