Crazy Eddie's GUI System 0.8.7
XMLParserModules/TinyXML2/XMLParser.h
1/***********************************************************************
2 filename: XMLParser.h
3 created: Fri Sep 02 2016
4 author: Vladimir "Niello" Orlov
5*************************************************************************/
6/***************************************************************************
7 * Copyright (C) 2004 - 2016 Paul D Turner & The CEGUI Development Team
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining
10 * a copy of this software and associated documentation files (the
11 * "Software"), to deal in the Software without restriction, including
12 * without limitation the rights to use, copy, modify, merge, publish,
13 * distribute, sublicense, and/or sell copies of the Software, and to
14 * permit persons to whom the Software is furnished to do so, subject to
15 * the following conditions:
16 *
17 * The above copyright notice and this permission notice shall be
18 * included in all copies or substantial portions of the Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 * OTHER DEALINGS IN THE SOFTWARE.
27 ***************************************************************************/
28#ifndef _CEGUITinyXML2Parser_h_
29#define _CEGUITinyXML2Parser_h_
30
31#include "../../XMLParser.h"
32
33#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
34# ifdef CEGUITINYXML2PARSER_EXPORTS
35# define CEGUITINYXML2PARSER_API __declspec(dllexport)
36# else
37# define CEGUITINYXML2PARSER_API __declspec(dllimport)
38# endif
39#else
40# define CEGUITINYXML2PARSER_API
41#endif
42
43namespace tinyxml2
44{
45 class XMLElement;
46}
47
48// Start of CEGUI namespace section
49namespace CEGUI
50{
55 class CEGUITINYXML2PARSER_API TinyXML2Parser : public XMLParser
56 {
57 public:
58 TinyXML2Parser(void);
59 ~TinyXML2Parser(void);
60
61 // Implementation of public abstract interface
62 void parseXML(XMLHandler& handler, const RawDataContainer& filename, const String& schemaName);
63
64 protected:
65 // Implementation of abstract interface.
66 bool initialiseImpl(void);
67 void cleanupImpl(void);
68
69 static void processElement(XMLHandler& handler, const tinyxml2::XMLElement* element);
70 };
71
72} // End of CEGUI namespace section
73
74
75#endif // end of guard _CEGUITinyXML2Parser_h_
Class used as the databuffer for loading files throughout the library.
Definition: DataContainer.h:44
String class used within the GUI system.
Definition: String.h:64
Implementation of XMLParser using TinyXML2.
Definition: XMLParserModules/TinyXML2/XMLParser.h:56
void cleanupImpl(void)
abstract method which cleans up the XMLParser after use.
bool initialiseImpl(void)
abstract method which initialises the XMLParser ready for use.
void parseXML(XMLHandler &handler, const RawDataContainer &filename, const String &schemaName)
abstract method which initiates parsing of an XML.
Definition: XMLHandler.h:37
This is an abstract class that is used by CEGUI to interface with XML parser libraries.
Definition: XMLParser.h:44
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1