1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Crazy Eddies GUI System: CEGUI::NamedXMLResourceManager< T, U > Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceCEGUI.html">CEGUI</a> </li>
<li class="navelem"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">NamedXMLResourceManager</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-types">Protected Types</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> </div>
<div class="headertitle">
<div class="title">CEGUI::NamedXMLResourceManager< T, U > Class Template Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::NamedXMLResourceManager" --><!-- doxytag: inherits="CEGUI::ResourceEventSet" -->
<p>Templatised manager class that loads and manages named XML based resources.
<a href="classCEGUI_1_1NamedXMLResourceManager.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for CEGUI::NamedXMLResourceManager< T, U >:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1NamedXMLResourceManager__inherit__graph.gif" border="0" usemap="#CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_inherit__map" id="CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_inherit__map">
<area shape="rect" id="node2" href="classCEGUI_1_1ResourceEventSet.html" title="implementation class to gather EventSet parts for all template instances." alt="" coords="64,83,245,112"/><area shape="rect" id="node4" href="classCEGUI_1_1EventSet.html" title="Class that collects together a set of Event objects." alt="" coords="92,5,217,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-1-trigger" src="closed.png"/> Collaboration diagram for CEGUI::NamedXMLResourceManager< T, U >:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1NamedXMLResourceManager__coll__graph.gif" border="0" usemap="#CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_coll__map" id="CEGUI_1_1NamedXMLResourceManager_3_01T_00_01U_01_4_coll__map">
<area shape="rect" id="node2" href="classCEGUI_1_1ResourceEventSet.html" title="implementation class to gather EventSet parts for all template instances." alt="" coords="21,152,203,181"/><area shape="rect" id="node4" href="classCEGUI_1_1EventSet.html" title="Class that collects together a set of Event objects." alt="" coords="5,5,131,35"/><area shape="rect" id="node6" href="classCEGUI_1_1String.html" title="String class used within the GUI system." alt="" coords="192,5,299,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classCEGUI_1_1NamedXMLResourceManager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a2ae558736f18e758f1c1b6f1c6d6b70e">NamedXMLResourceManager</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &resource_type)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a2ae558736f18e758f1c1b6f1c6d6b70e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5a3293c828c5643d71b898a6c29afa0"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::~NamedXMLResourceManager" ref="aa5a3293c828c5643d71b898a6c29afa0" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#aa5a3293c828c5643d71b898a6c29afa0">~NamedXMLResourceManager</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a13093b377ff84b3cfbd285aaa83ee166">create</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &xml_filename, const <a class="el" href="classCEGUI_1_1String.html">String</a> &resource_group="", <a class="el" href="namespaceCEGUI.html#a9944966045296e1d2533fe15ee865359">XMLResourceExistsAction</a> action=XREA_RETURN)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new T object from an XML file and adds it to the collection. <a href="#a13093b377ff84b3cfbd285aaa83ee166"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a22df87b9b35eb05b773d198fdfc49ea1">destroy</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &object_name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy the object named <em>object_name</em>, or do nothing if such an object does not exist in the collection. <a href="#a22df87b9b35eb05b773d198fdfc49ea1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#aff2ebd2f107a1de1e0143540d508431d">destroy</a> (const T &object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy the object <em>object</em>, or do nothing if such an object does not exist in the collection. <a href="#aff2ebd2f107a1de1e0143540d508431d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99f9ff914c3e562a24b06417130f1f45"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::destroyAll" ref="a99f9ff914c3e562a24b06417130f1f45" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a99f9ff914c3e562a24b06417130f1f45">destroyAll</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy all objects. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a1e14c66d9ab6df184eedeaf3ffcf1655">get</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &object_name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a reference to the object named <em>object_name</em>. <a href="#a1e14c66d9ab6df184eedeaf3ffcf1655"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05e36d9d715d209ab1fe6658c9202934"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::isDefined" ref="a05e36d9d715d209ab1fe6658c9202934" args="(const String &object_name) const " -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a05e36d9d715d209ab1fe6658c9202934">isDefined</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &object_name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return whether an object named <em>object_name</em> exists. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dfa49b0b241426ee3f5dcb39663c301"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::createAll" ref="a4dfa49b0b241426ee3f5dcb39663c301" args="(const String &pattern, const String &resource_group)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a4dfa49b0b241426ee3f5dcb39663c301">createAll</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &pattern, const <a class="el" href="classCEGUI_1_1String.html">String</a> &resource_group)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new T object from files with names matching <em>pattern</em> in <em>resource_group</em>. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a785c2f0127133c3232d6da4673d93080"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::ObjectRegistry" ref="a785c2f0127133c3232d6da4673d93080" args="" -->
typedef std::map< <a class="el" href="classCEGUI_1_1String.html">String</a>, T <br class="typebreak"/>
*, <a class="el" href="structCEGUI_1_1String_1_1FastLessCompare.html">String::FastLessCompare</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a785c2f0127133c3232d6da4673d93080">ObjectRegistry</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">type of collection used to store and manage objects <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15b34969f913a302e3e6067318563059"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::destroyObject" ref="a15b34969f913a302e3e6067318563059" args="(typename ObjectRegistry::iterator ob)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a15b34969f913a302e3e6067318563059">destroyObject</a> (typename ObjectRegistry::iterator ob)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">implementation of object destruction. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aec9e54bb6b310d8062cc90b0dc7692b8"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::doExistingObjectAction" ref="aec9e54bb6b310d8062cc90b0dc7692b8" args="(const String object_name, T *object, const XMLResourceExistsAction action)" -->
T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#aec9e54bb6b310d8062cc90b0dc7692b8">doExistingObjectAction</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> object_name, T *object, const <a class="el" href="namespaceCEGUI.html#a9944966045296e1d2533fe15ee865359">XMLResourceExistsAction</a> action)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">function to enforce XMLResourceExistsAction policy. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02e49a7870cc78742253c1bb43a03cd7"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::doPostObjectAdditionAction" ref="a02e49a7870cc78742253c1bb43a03cd7" args="(T &object)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a02e49a7870cc78742253c1bb43a03cd7">doPostObjectAdditionAction</a> (T &object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function called each time a new object is added to the collection. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42964e958b8b29c2a10b87e97e0b06b0"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::d_resourceType" ref="a42964e958b8b29c2a10b87e97e0b06b0" args="" -->
const <a class="el" href="classCEGUI_1_1String.html">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a42964e958b8b29c2a10b87e97e0b06b0">d_resourceType</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the text for the resource type managed. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61dfea8cd7ed559ac8cfc7354d835c09"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::d_objects" ref="a61dfea8cd7ed559ac8cfc7354d835c09" args="" -->
<a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a785c2f0127133c3232d6da4673d93080">ObjectRegistry</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html#a61dfea8cd7ed559ac8cfc7354d835c09">d_objects</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">the collection of objects <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template<typename T, typename U><br/>
class CEGUI::NamedXMLResourceManager< T, U ></h3>
<p>Templatised manager class that loads and manages named XML based resources. </p>
<dl><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">T</td><td>Type for the object that is loaded and managed by the class.</td></tr>
<tr><td class="paramname">U</td><td>Type for the loader used to create object instances of T from XML files. This class does all of the creation / loading work and can be of any form or type desired, with the following requirements:<ul>
<li>a constructor signature compatible with the following call: U(const String& xml_filename, const String& resource_group);</li>
<li>a function getObjectName that returns the name of the object as specified in the XML file given in the constructor to U.</li>
<li>a function getObject that returns a reference to the object created as a result of processing the XML file given in the constructor to U. </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Once <a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html" title="Templatised manager class that loads and manages named XML based resources.">NamedXMLResourceManager</a> calls getObject on the instance of U, it assumes that it now owns the object returned, if no call to getObject is made, no such transfer of ownership is assumed. </dd></dl>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a2ae558736f18e758f1c1b6f1c6d6b70e"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::NamedXMLResourceManager" ref="a2ae558736f18e758f1c1b6f1c6d6b70e" args="(const String &resource_type)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T , typename U > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">CEGUI::NamedXMLResourceManager</a>< T, U >::<a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">NamedXMLResourceManager</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>resource_type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">resource_type</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> object holding some textual indication of the type of objects managed by the collection. This is used to give more descriptive log and exception messages. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a13093b377ff84b3cfbd285aaa83ee166"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::create" ref="a13093b377ff84b3cfbd285aaa83ee166" args="(const String &xml_filename, const String &resource_group="", XMLResourceExistsAction action=XREA_RETURN)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T , typename U > </div>
<table class="memname">
<tr>
<td class="memname">T & <a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">CEGUI::NamedXMLResourceManager</a>< T, U >::create </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>xml_filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>resource_group</em> = <code>""</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCEGUI.html#a9944966045296e1d2533fe15ee865359">XMLResourceExistsAction</a> </td>
<td class="paramname"><em>action</em> = <code>XREA_RETURN</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new T object from an XML file and adds it to the collection. </p>
<p>Use an instance of the xml resource loading class <em>U</em> to process the XML file <em>xml_filename</em> from resource group <em>resource_group</em> thereby creating an instance of class <em>T</em> and add it to the collection under the name specified in the XML file.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">xml_filename</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the filename of the XML file to be used when creating the new object instance.</td></tr>
<tr><td class="paramname">resource_group</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the name of the resource group identifier to be used when loading the XML file described by <em>xml_filename</em>.</td></tr>
<tr><td class="paramname">action</td><td>One of the XMLResourceExistsAction enumerated values indicating what action should be taken when an object with the specified name already exists within the collection. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a22df87b9b35eb05b773d198fdfc49ea1"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::destroy" ref="a22df87b9b35eb05b773d198fdfc49ea1" args="(const String &object_name)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T , typename U > </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">CEGUI::NamedXMLResourceManager</a>< T, U >::destroy </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>object_name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroy the object named <em>object_name</em>, or do nothing if such an object does not exist in the collection. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">object_name</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the name of the object to be destroyed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aff2ebd2f107a1de1e0143540d508431d"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::destroy" ref="aff2ebd2f107a1de1e0143540d508431d" args="(const T &object)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T, typename U > </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">CEGUI::NamedXMLResourceManager</a>< T, U >::destroy </td>
<td>(</td>
<td class="paramtype">const T & </td>
<td class="paramname"><em>object</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroy the object <em>object</em>, or do nothing if such an object does not exist in the collection. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to be destroyed (beware of keeping references to this object once it's been destroyed!) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1e14c66d9ab6df184eedeaf3ffcf1655"></a><!-- doxytag: member="CEGUI::NamedXMLResourceManager::get" ref="a1e14c66d9ab6df184eedeaf3ffcf1655" args="(const String &object_name) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T , typename U > </div>
<table class="memname">
<tr>
<td class="memname">T & <a class="el" href="classCEGUI_1_1NamedXMLResourceManager.html">CEGUI::NamedXMLResourceManager</a>< T, U >::get </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>object_name</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a reference to the object named <em>object_name</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">object_name</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the name of the object to be returned.</td></tr>
</table>
</dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classCEGUI_1_1UnknownObjectException.html" title="Exception class used when a request was made for an unknown object.">UnknownObjectException</a></td><td>thrown if no object named <em>object_name</em> exists within the collection. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:41 for Crazy Eddies GUI System by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|