1
by Thomi Richards
Initial code import. |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 |
<head> |
|
4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
|
5 |
<title>Crazy Eddies GUI System: CEGUIRapidXMLParser.h Source File</title> |
|
6 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
7 |
<link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 |
</head> |
|
9 |
<body> |
|
10 |
<!-- Generated by Doxygen 1.7.4 -->
|
|
11 |
<script type="text/javascript"> |
|
12 |
function hasClass(ele,cls) { |
|
13 |
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); |
|
14 |
}
|
|
15 |
||
16 |
function addClass(ele,cls) { |
|
17 |
if (!this.hasClass(ele,cls)) ele.className += " "+cls; |
|
18 |
}
|
|
19 |
||
20 |
function removeClass(ele,cls) { |
|
21 |
if (hasClass(ele,cls)) { |
|
22 |
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); |
|
23 |
ele.className=ele.className.replace(reg,' '); |
|
24 |
}
|
|
25 |
}
|
|
26 |
||
27 |
function toggleVisibility(linkObj) { |
|
28 |
var base = linkObj.getAttribute('id'); |
|
29 |
var summary = document.getElementById(base + '-summary'); |
|
30 |
var content = document.getElementById(base + '-content'); |
|
31 |
var trigger = document.getElementById(base + '-trigger'); |
|
32 |
if ( hasClass(linkObj,'closed') ) { |
|
33 |
summary.style.display = 'none'; |
|
34 |
content.style.display = 'block'; |
|
35 |
trigger.src = 'open.png'; |
|
36 |
removeClass(linkObj,'closed'); |
|
37 |
addClass(linkObj,'opened'); |
|
38 |
} else if ( hasClass(linkObj,'opened') ) { |
|
39 |
summary.style.display = 'block'; |
|
40 |
content.style.display = 'none'; |
|
41 |
trigger.src = 'closed.png'; |
|
42 |
removeClass(linkObj,'opened'); |
|
43 |
addClass(linkObj,'closed'); |
|
44 |
}
|
|
45 |
return false; |
|
46 |
}
|
|
47 |
</script> |
|
48 |
<div id="top"> |
|
49 |
<div id="titlearea"> |
|
50 |
<table cellspacing="0" cellpadding="0"> |
|
51 |
<tbody> |
|
52 |
<tr style="height: 56px;"> |
|
53 |
<td style="padding-left: 0.5em;"> |
|
54 |
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div> |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
</tbody> |
|
58 |
</table> |
|
59 |
</div> |
|
60 |
<div id="navrow1" class="tabs"> |
|
61 |
<ul class="tablist"> |
|
62 |
<li><a href="index.html"><span>Main Page</span></a></li> |
|
63 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
|
64 |
<li><a href="namespaces.html"><span>Namespaces</span></a></li> |
|
65 |
<li><a href="annotated.html"><span>Classes</span></a></li> |
|
66 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
|
67 |
</ul> |
|
68 |
</div> |
|
69 |
<div id="navrow2" class="tabs2"> |
|
70 |
<ul class="tablist"> |
|
71 |
<li><a href="files.html"><span>File List</span></a></li> |
|
72 |
</ul> |
|
73 |
</div> |
|
74 |
<div class="header"> |
|
75 |
<div class="headertitle"> |
|
76 |
<div class="title">CEGUIRapidXMLParser.h</div> </div> |
|
77 |
</div> |
|
78 |
<div class="contents"> |
|
79 |
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***********************************************************************</span> |
|
80 |
<a name="l00002"></a>00002 <span class="comment"> filename: CEGUIRapidXMLParser.h</span> |
|
81 |
<a name="l00003"></a>00003 <span class="comment"> created: Mar 27 2010</span> |
|
82 |
<a name="l00004"></a>00004 <span class="comment"> author: Jay Sprenkle</span> |
|
83 |
<a name="l00005"></a>00005 <span class="comment">*************************************************************************/</span> |
|
84 |
<a name="l00006"></a>00006 <span class="comment">/***************************************************************************</span> |
|
85 |
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2004 - 2010 Paul D Turner & The CEGUI Development Team</span> |
|
86 |
<a name="l00008"></a>00008 <span class="comment"> *</span> |
|
87 |
<a name="l00009"></a>00009 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span> |
|
88 |
<a name="l00010"></a>00010 <span class="comment"> * a copy of this software and associated documentation files (the</span> |
|
89 |
<a name="l00011"></a>00011 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span> |
|
90 |
<a name="l00012"></a>00012 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span> |
|
91 |
<a name="l00013"></a>00013 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span> |
|
92 |
<a name="l00014"></a>00014 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span> |
|
93 |
<a name="l00015"></a>00015 <span class="comment"> * the following conditions:</span> |
|
94 |
<a name="l00016"></a>00016 <span class="comment"> *</span> |
|
95 |
<a name="l00017"></a>00017 <span class="comment"> * The above copyright notice and this permission notice shall be</span> |
|
96 |
<a name="l00018"></a>00018 <span class="comment"> * included in all copies or substantial portions of the Software.</span> |
|
97 |
<a name="l00019"></a>00019 <span class="comment"> *</span> |
|
98 |
<a name="l00020"></a>00020 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span> |
|
99 |
<a name="l00021"></a>00021 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span> |
|
100 |
<a name="l00022"></a>00022 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span> |
|
101 |
<a name="l00023"></a>00023 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span> |
|
102 |
<a name="l00024"></a>00024 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span> |
|
103 |
<a name="l00025"></a>00025 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span> |
|
104 |
<a name="l00026"></a>00026 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span> |
|
105 |
<a name="l00027"></a>00027 <span class="comment"> ***************************************************************************/</span> |
|
106 |
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _CEGUIRapidXMLParser_h_</span> |
|
107 |
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIRapidXMLParser_h_</span> |
|
108 |
<a name="l00030"></a>00030 <span class="preprocessor"></span> |
|
109 |
<a name="l00031"></a>00031 <span class="preprocessor">#include "../../CEGUIXMLParser.h"</span> |
|
110 |
<a name="l00032"></a>00032 |
|
111 |
<a name="l00033"></a>00033 <span class="preprocessor">#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)</span> |
|
112 |
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor"># ifdef CEGUIRAPIDXMLPARSER_EXPORTS</span> |
|
113 |
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor"># define CEGUIRAPIDXMLPARSER_API __declspec(dllexport)</span> |
|
114 |
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor"># else</span> |
|
115 |
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor"># define CEGUIRAPIDXMLPARSER_API __declspec(dllimport)</span> |
|
116 |
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor"># endif</span> |
|
117 |
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#else</span> |
|
118 |
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor"># define CEGUIRAPIDXMLPARSER_API</span> |
|
119 |
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
|
120 |
<a name="l00042"></a>00042 <span class="preprocessor"></span> |
|
121 |
<a name="l00043"></a>00043 <span class="comment">// Start of CEGUI namespace section</span> |
|
122 |
<a name="l00044"></a>00044 <span class="keyword">namespace </span>CEGUI |
|
123 |
<a name="l00045"></a>00045 { |
|
124 |
<a name="l00047"></a><a class="code" href="classCEGUI_1_1RapidXMLParser.html">00047</a> <span class="keyword">class </span>CEGUIRAPIDXMLPARSER_API <a class="code" href="classCEGUI_1_1RapidXMLParser.html" title="Implementation of XMLParser using RapidXML.">RapidXMLParser</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1XMLParser.html" title="This is an abstract class that is used by CEGUI to interface with XML parser libraries.">XMLParser</a> |
|
125 |
<a name="l00048"></a>00048 { |
|
126 |
<a name="l00049"></a>00049 <span class="keyword">public</span>: |
|
127 |
<a name="l00050"></a>00050 <a class="code" href="classCEGUI_1_1RapidXMLParser.html" title="Implementation of XMLParser using RapidXML.">RapidXMLParser</a>(<span class="keywordtype">void</span>); |
|
128 |
<a name="l00051"></a>00051 ~<a class="code" href="classCEGUI_1_1RapidXMLParser.html" title="Implementation of XMLParser using RapidXML.">RapidXMLParser</a>(<span class="keywordtype">void</span>); |
|
129 |
<a name="l00052"></a>00052 |
|
130 |
<a name="l00053"></a>00053 <span class="comment">// Implementation of public abstract interface</span> |
|
131 |
<a name="l00054"></a>00054 <span class="keywordtype">void</span> parseXMLFile(<a class="code" href="classCEGUI_1_1XMLHandler.html">XMLHandler</a>& handler, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& filename, |
|
132 |
<a name="l00055"></a>00055 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& schemaName, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& resourceGroup); |
|
133 |
<a name="l00056"></a>00056 |
|
134 |
<a name="l00057"></a>00057 <span class="keyword">protected</span>: |
|
135 |
<a name="l00058"></a>00058 <span class="comment">// Implementation of abstract interface.</span> |
|
136 |
<a name="l00059"></a>00059 <span class="keywordtype">bool</span> initialiseImpl(<span class="keywordtype">void</span>); |
|
137 |
<a name="l00060"></a>00060 <span class="keywordtype">void</span> cleanupImpl(<span class="keywordtype">void</span>); |
|
138 |
<a name="l00061"></a>00061 }; |
|
139 |
<a name="l00062"></a>00062 |
|
140 |
<a name="l00063"></a>00063 } <span class="comment">// End of CEGUI namespace section</span> |
|
141 |
<a name="l00064"></a>00064 |
|
142 |
<a name="l00065"></a>00065 |
|
143 |
<a name="l00066"></a>00066 <span class="preprocessor">#endif // end of guard _CEGUIRapidXMLParser_h_</span> |
|
144 |
<a name="l00067"></a>00067 <span class="preprocessor"></span> |
|
145 |
</pre></div></div> |
|
146 |
</div> |
|
147 |
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:39 for Crazy Eddies GUI System by  |
|
148 |
<a href="http://www.doxygen.org/index.html"> |
|
149 |
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> |
|
150 |
</body> |
|
151 |
</html> |