Salome HOME
31cd4ee186dbd83d3662cde8b9a4d8a49e80bbd0
[plugins/ghs3dprlplugin.git] / src / tepal2med / ghs3dprl_msg_parser.h
1 // Copyright (C) 2007-2016  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // ---
21 // File   : ghs3dprl_mesh_parser.h
22 // Author : Christian VAN WAMBEKE (CEA) (from Hexotic plugin Lioka RAZAFINDRAZAKA)
23 // ---
24 //
25 #ifndef GHS3DPRL_MSG_PARSER_H
26 #define GHS3DPRL_MSG_PARSER_H
27
28 #include "ghs3dprl_mesh_wrap.h"
29 #include <QXmlDefaultHandler>
30
31 class ghs3dprl_msg_parser : public QXmlDefaultHandler
32 {
33  public:
34    bool startDocument();
35    bool startElement(const QString&,
36                      const QString&,
37                      const QString& ,
38                      const QXmlAttributes&);
39    bool endElement(const QString&,
40                    const QString&,
41                    const QString&);
42    bool characters(const QString&);
43
44    ghs3dprl_mesh_wrap *mailw; //results maillages wrap
45    bool verbose;
46
47 private:
48    QString indent,
49            typel,shorttypel,
50            sendreceive,shortsendreceive,
51            begin,
52            version,
53            neighbours,
54            count,
55            neighbour,
56            indice,
57            send,
58            vertices,
59            edges,
60            faces,
61            elements,
62            receive;
63
64    long etat,
65         neighbourscount,neighbourcourant,neighbourindice,
66         nbcount; //nb faces vertices edges elements expected
67 };
68
69 #endif