• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

granatier

  • sources
  • kde-4.14
  • kdegames
  • granatier
  • src
mapparser.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Mathias Kraus <k.hias@gmx.de>
3  * Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
4  * Copyright 2007-2008 Nathalie Liesse <nathalie.liesse@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef MAPPARSER_H
21 #define MAPPARSER_H
22 
23 #include <QXmlDefaultHandler>
24 
25 class Arena;
26 
30 class MapParser : public QXmlDefaultHandler
31 {
32 
33 private:
34 
36  Arena* m_arena;
37 
39  QString m_buffer;
40 
42  int m_counterRows;
43 public:
44 
49  MapParser(Arena* p_arena);
50 
54  ~MapParser();
55 
59  bool characters(const QString & ch );
60 
64  bool startElement(const QString&, const QString&, const QString& p_qName, const QXmlAttributes& p_atts);
65 
69  bool endElement(const QString &, const QString &, const QString & p_qName );
70 
71 };
72 
73 #endif
74 
QXmlDefaultHandler
MapParser
This class handles XML reader events in order to initialize the Arena properties. ...
Definition: mapparser.h:30
MapParser::characters
bool characters(const QString &ch)
Implement QXmlDefaultHandler::characters.
Definition: mapparser.cpp:36
MapParser::~MapParser
~MapParser()
Deletes the GameParser instance.
Definition: mapparser.cpp:32
Arena
This class represents the Arena of the game.
Definition: arena.h:36
QString
QXmlAttributes
MapParser::MapParser
MapParser(Arena *p_arena)
Creates a new GameParser.
Definition: mapparser.cpp:26
MapParser::startElement
bool startElement(const QString &, const QString &, const QString &p_qName, const QXmlAttributes &p_atts)
Implements QXmlDefaultHandler::startElement()
Definition: mapparser.cpp:42
MapParser::endElement
bool endElement(const QString &, const QString &, const QString &p_qName)
Implements QXmlDefaultHandler::endElement()
Definition: mapparser.cpp:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal