Salome HOME
dafc39ceeb4fb36e2fc7dfbec0ab00ee2c6041e2
[plugins/ghs3dprlplugin.git] / src / tepal2med / ghs3dprl_msg_parser.h
1 // Copyright (C) 2007-2008 OPEN CASCADE, 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.
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
26 #ifndef GHS3DPRL_MSG_PARSER_H
27 #define GHS3DPRL_MSG_PARSER_H
28
29 #include "ghs3dprl_mesh_wrap.h"
30 #include <QXmlDefaultHandler>
31
32 class ghs3dprl_msg_parser : public QXmlDefaultHandler
33 {
34  public:
35    bool startDocument();
36    bool startElement(const QString&,
37                      const QString&,
38                      const QString& ,
39                      const QXmlAttributes&);
40    bool endElement(const QString&,
41                    const QString&,
42                    const QString&);
43    bool characters(const QString&);
44
45    ghs3dprl_mesh_wrap *mailw; //results maillages wrap
46    bool verbose;
47
48 private:
49    QString indent,
50            typel,shorttypel,
51            sendreceive,shortsendreceive,
52            begin,
53            version,
54            neighbours,
55            count,
56            neighbour,
57            indice,
58            send,
59            vertices,
60            edges,
61            faces,
62            elements,
63            receive;
64
65    long etat,
66         neighbourscount,neighbourcourant,neighbourindice,
67         nbcount; //nb faces vertices edges elements expected
68 };
69
70 #endif