1 | /************************************************************************
|
---|
2 | filename: CEGUIXMLHandler.h
|
---|
3 | created: 12/3/2005
|
---|
4 | author: Paul D Turner
|
---|
5 | *************************************************************************/
|
---|
6 | /*************************************************************************
|
---|
7 | Crazy Eddie's GUI System (http://www.cegui.org.uk)
|
---|
8 | Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
|
---|
9 |
|
---|
10 | This library is free software; you can redistribute it and/or
|
---|
11 | modify it under the terms of the GNU Lesser General Public
|
---|
12 | License as published by the Free Software Foundation; either
|
---|
13 | version 2.1 of the License, or (at your option) any later version.
|
---|
14 |
|
---|
15 | This library is distributed in the hope that it will be useful,
|
---|
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
18 | Lesser General Public License for more details.
|
---|
19 |
|
---|
20 | You should have received a copy of the GNU Lesser General Public
|
---|
21 | License along with this library; if not, write to the Free Software
|
---|
22 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
23 | *************************************************************************/
|
---|
24 | #ifndef _CEGUIXMLHandler_h_
|
---|
25 | #define _CEGUIXMLHandler_h_
|
---|
26 |
|
---|
27 | #include "CEGUIBase.h"
|
---|
28 |
|
---|
29 |
|
---|
30 | // Start of CEGUI namespace section
|
---|
31 | namespace CEGUI
|
---|
32 | {
|
---|
33 | class CEGUIEXPORT XMLHandler
|
---|
34 | {
|
---|
35 | public:
|
---|
36 | /*!
|
---|
37 | \brief
|
---|
38 | XMLHandler base class constructor.
|
---|
39 | */
|
---|
40 | XMLHandler(void);
|
---|
41 |
|
---|
42 | /*!
|
---|
43 | \brief
|
---|
44 | XMLHandler base class destructor.
|
---|
45 | */
|
---|
46 | virtual ~XMLHandler(void);
|
---|
47 |
|
---|
48 | /*!
|
---|
49 | \brief
|
---|
50 | Method called to notify the handler at the start of each XML element encountered.
|
---|
51 |
|
---|
52 | \param element
|
---|
53 | String object holding the name of the element that is starting.
|
---|
54 |
|
---|
55 | \param attributes
|
---|
56 | An XMLAttributes object holding the collection of attributes specified for the element.
|
---|
57 |
|
---|
58 | \return
|
---|
59 | Nothing.
|
---|
60 | */
|
---|
61 | virtual void elementStart(const String& element, const XMLAttributes& attributes);
|
---|
62 |
|
---|
63 | /*!
|
---|
64 | \brief
|
---|
65 | Method called to notify the handler at the end of each XML element encountered.
|
---|
66 |
|
---|
67 | \param element
|
---|
68 | String object holding the name of the element that is ending.
|
---|
69 |
|
---|
70 | \return
|
---|
71 | Nothing.
|
---|
72 | */
|
---|
73 | virtual void elementEnd(const String& element);
|
---|
74 | };
|
---|
75 |
|
---|
76 | } // End of CEGUI namespace section
|
---|
77 |
|
---|
78 |
|
---|
79 | #endif // end of guard _CEGUIXMLHandler_h_
|
---|