[692] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>OgreResourceGroupManager.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
| 5 | </head> |
---|
| 6 | |
---|
| 7 | <body> |
---|
| 8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
| 9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
| 10 | <h1>OgreResourceGroupManager.h</h1><a href="OgreResourceGroupManager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
| 11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
| 13 | 00004 <span class="comment">(Object-oriented Graphics Rendering Engine)</span> |
---|
| 14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
| 15 | 00006 <span class="comment"></span> |
---|
| 16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
| 17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
| 18 | 00009 <span class="comment"></span> |
---|
| 19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
| 20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
| 21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
| 22 | 00013 <span class="comment">version.</span> |
---|
| 23 | 00014 <span class="comment"></span> |
---|
| 24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
| 25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
| 26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
| 27 | 00018 <span class="comment"></span> |
---|
| 28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
| 29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
| 30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
| 31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
| 32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 33 | 00024 <span class="comment">*/</span> |
---|
| 34 | 00025 <span class="preprocessor">#ifndef _ResourceGroupManager_H__</span> |
---|
| 35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define _ResourceGroupManager_H__</span> |
---|
| 36 | 00027 <span class="preprocessor"></span> |
---|
| 37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
| 38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgreSingleton_8h.html">OgreSingleton.h</a>"</span> |
---|
| 39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
| 40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreDataStream_8h.html">OgreDataStream.h</a>"</span> |
---|
| 41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreResource_8h.html">OgreResource.h</a>"</span> |
---|
| 42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreArchive_8h.html">OgreArchive.h</a>"</span> |
---|
| 43 | 00034 |
---|
| 44 | 00035 <span class="keyword">namespace </span>Ogre { |
---|
| 45 | 00036 |
---|
| 46 | <a name="l00063"></a><a class="code" href="classOgre_1_1ResourceGroupListener.html">00063</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> ResourceGroupListener |
---|
| 47 | 00064 { |
---|
| 48 | 00065 <span class="keyword">public</span>: |
---|
| 49 | <a name="l00066"></a><a class="code" href="classOgre_1_1ResourceGroupListener.html#Ogre_1_1ResourceGroupListenera0">00066</a> <span class="keyword">virtual</span> ~ResourceGroupListener() {} |
---|
| 50 | 00067 |
---|
| 51 | 00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupScriptingStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, size_t scriptCount) = 0; |
---|
| 52 | 00076 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scriptParseStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& scriptName) = 0; |
---|
| 53 | 00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scriptParseEnded(<span class="keywordtype">void</span>) = 0; |
---|
| 54 | 00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupScriptingEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName) = 0; |
---|
| 55 | 00082 |
---|
| 56 | 00088 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupLoadStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, size_t resourceCount) = 0; |
---|
| 57 | 00092 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceLoadStarted(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& resource) = 0; |
---|
| 58 | 00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceLoadEnded(<span class="keywordtype">void</span>) = 0; |
---|
| 59 | 00101 <span class="keyword">virtual</span> <span class="keywordtype">void</span> worldGeometryStageStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& description) = 0; |
---|
| 60 | 00107 <span class="keyword">virtual</span> <span class="keywordtype">void</span> worldGeometryStageEnded(<span class="keywordtype">void</span>) = 0; |
---|
| 61 | 00108 |
---|
| 62 | 00110 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupLoadEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName) = 0; |
---|
| 63 | 00111 |
---|
| 64 | 00112 }; |
---|
| 65 | <a name="l00161"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html">00161</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> ResourceGroupManager : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Singleton.html">Singleton</a><ResourceGroupManager> |
---|
| 66 | 00162 { |
---|
| 67 | 00163 <span class="keyword">public</span>: |
---|
| 68 | 00164 <a class="code" href="OgrePrerequisites_8h.html#a12">OGRE_AUTO_MUTEX</a> <span class="comment">// public to allow external locking</span> |
---|
| 69 | <a name="l00166"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers0">00166</a> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> DEFAULT_RESOURCE_GROUP_NAME; |
---|
| 70 | <a name="l00168"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers1">00168</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> INTERNAL_RESOURCE_GROUP_NAME; |
---|
| 71 | <a name="l00170"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers2">00170</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> BOOTSTRAP_RESOURCE_GROUP_NAME; |
---|
| 72 | <a name="l00172"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers3">00172</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> AUTODETECT_RESOURCE_GROUP_NAME; |
---|
| 73 | <a name="l00174"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers4">00174</a> <span class="keyword">static</span> size_t RESOURCE_SYSTEM_NUM_REFERENCE_COUNTS; |
---|
| 74 | <a name="l00176"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html">00176</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html">ResourceDeclaration</a> |
---|
| 75 | 00177 { |
---|
| 76 | <a name="l00178"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo0">00178</a> <a class="code" href="namespaceOgre.html#a471">String</a> resourceName; |
---|
| 77 | <a name="l00179"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo1">00179</a> <a class="code" href="namespaceOgre.html#a471">String</a> resourceType; |
---|
| 78 | <a name="l00180"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo2">00180</a> <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader; |
---|
| 79 | <a name="l00181"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo3">00181</a> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a> parameters; |
---|
| 80 | 00182 }; |
---|
| 81 | <a name="l00184"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">00184</a> <span class="keyword">typedef</span> std::list<ResourceDeclaration> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">ResourceDeclarationList</a>; |
---|
| 82 | 00185 <span class="keyword">protected</span>: |
---|
| 83 | <a name="l00187"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">00187</a> <span class="keyword">typedef</span> std::map<String, ResourceManager*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">ResourceManagerMap</a>; |
---|
| 84 | <a name="l00188"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp0">00188</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">ResourceManagerMap</a> mResourceManagerMap; |
---|
| 85 | 00189 |
---|
| 86 | <a name="l00191"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">00191</a> <span class="keyword">typedef</span> std::multimap<Real, ScriptLoader*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">ScriptLoaderOrderMap</a>; |
---|
| 87 | <a name="l00192"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp1">00192</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">ScriptLoaderOrderMap</a> mScriptLoaderOrderMap; |
---|
| 88 | 00193 |
---|
| 89 | <a name="l00194"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">00194</a> <span class="keyword">typedef</span> std::vector<ResourceGroupListener*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">ResourceGroupListenerList</a>; |
---|
| 90 | <a name="l00195"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp2">00195</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">ResourceGroupListenerList</a> mResourceGroupListenerList; |
---|
| 91 | 00196 |
---|
| 92 | <a name="l00198"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">00198</a> <span class="keyword">typedef</span> std::map<String, Archive*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a>; |
---|
| 93 | 00199 |
---|
| 94 | <a name="l00201"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html">00201</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html">ResourceLocation</a> |
---|
| 95 | 00202 { |
---|
| 96 | <a name="l00204"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html#Ogre_1_1ResourceGroupManager_1_1ResourceLocationo0">00204</a> <a class="code" href="classOgre_1_1Archive.html">Archive</a>* archive; |
---|
| 97 | <a name="l00206"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html#Ogre_1_1ResourceGroupManager_1_1ResourceLocationo1">00206</a> <span class="keywordtype">bool</span> recursive; |
---|
| 98 | 00207 }; |
---|
| 99 | <a name="l00209"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">00209</a> <span class="keyword">typedef</span> std::list<ResourceLocation*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">LocationList</a>; |
---|
| 100 | <a name="l00211"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx5">00211</a> <span class="keyword">typedef</span> std::list<ResourcePtr> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx5">LoadUnloadResourceList</a>; |
---|
| 101 | <a name="l00213"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">00213</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a> |
---|
| 102 | 00214 { |
---|
| 103 | 00215 <a class="code" href="OgrePrerequisites_8h.html#a12">OGRE_AUTO_MUTEX</a> |
---|
| 104 | <a name="l00217"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo0">00217</a> <a class="code" href="namespaceOgre.html#a471">String</a> name; |
---|
| 105 | <a name="l00219"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo1">00219</a> <span class="keywordtype">bool</span> initialised; |
---|
| 106 | <a name="l00221"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo2">00221</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">LocationList</a> locationList; |
---|
| 107 | <a name="l00223"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo3">00223</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a> resourceIndexCaseSensitive; |
---|
| 108 | <a name="l00225"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo4">00225</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a> resourceIndexCaseInsensitive; |
---|
| 109 | <a name="l00227"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo5">00227</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">ResourceDeclarationList</a> resourceDeclarations; |
---|
| 110 | 00229 <span class="comment">// Group by loading order of the type (defined by ResourceManager)</span> |
---|
| 111 | 00230 <span class="comment">// (e.g. skeletons and materials before meshes)</span> |
---|
| 112 | <a name="l00231"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">00231</a> <span class="keyword">typedef</span> std::map<Real, LoadUnloadResourceList*> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">LoadResourceOrderMap</a>; |
---|
| 113 | <a name="l00232"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo6">00232</a> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">LoadResourceOrderMap</a> loadResourceOrderMap; |
---|
| 114 | <a name="l00234"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo7">00234</a> <a class="code" href="namespaceOgre.html#a471">String</a> worldGeometry; |
---|
| 115 | <a name="l00236"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo8">00236</a> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* worldGeometrySceneManager; |
---|
| 116 | 00237 }; |
---|
| 117 | <a name="l00239"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">00239</a> <span class="keyword">typedef</span> std::map<String, ResourceGroup*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">ResourceGroupMap</a>; |
---|
| 118 | <a name="l00240"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp3">00240</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">ResourceGroupMap</a> mResourceGroupMap; |
---|
| 119 | 00241 |
---|
| 120 | <a name="l00243"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp4">00243</a> <a class="code" href="namespaceOgre.html#a471">String</a> mWorldGroupName; |
---|
| 121 | 00244 |
---|
| 122 | 00250 <span class="keywordtype">void</span> parseResourceGroupScripts(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
| 123 | 00255 <span class="keywordtype">void</span> createDeclaredResources(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
| 124 | 00257 <span class="keywordtype">void</span> addCreatedResource(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res, <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>& group); |
---|
| 125 | 00259 <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* getResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
| 126 | 00261 <span class="keywordtype">void</span> dropGroupContents(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
| 127 | 00263 <span class="keywordtype">void</span> deleteGroup(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
| 128 | 00265 <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* findGroupContainingResourceImpl(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& filename); |
---|
| 129 | 00267 <span class="keywordtype">void</span> fireResourceGroupScriptingStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, size_t scriptCount); |
---|
| 130 | 00269 <span class="keywordtype">void</span> fireScriptStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& scriptName); |
---|
| 131 | 00271 <span class="keywordtype">void</span> fireScriptEnded(<span class="keywordtype">void</span>); |
---|
| 132 | 00273 <span class="keywordtype">void</span> fireResourceGroupScriptingEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 133 | 00275 <span class="keywordtype">void</span> fireResourceGroupLoadStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, size_t resourceCount); |
---|
| 134 | 00277 <span class="keywordtype">void</span> fireResourceStarted(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& resource); |
---|
| 135 | 00279 <span class="keywordtype">void</span> fireResourceEnded(<span class="keywordtype">void</span>); |
---|
| 136 | 00281 <span class="keywordtype">void</span> fireResourceGroupLoadEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 137 | 00282 |
---|
| 138 | 00283 |
---|
| 139 | 00284 |
---|
| 140 | <a name="l00286"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp5">00286</a> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* mCurrentGroup; |
---|
| 141 | 00287 <span class="keyword">public</span>: |
---|
| 142 | 00288 ResourceGroupManager(); |
---|
| 143 | 00289 <span class="keyword">virtual</span> ~ResourceGroupManager(); |
---|
| 144 | 00290 |
---|
| 145 | 00326 <span class="keywordtype">void</span> createResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
| 146 | 00327 |
---|
| 147 | 00328 |
---|
| 148 | 00368 <span class="keywordtype">void</span> initialiseResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
| 149 | 00369 |
---|
| 150 | 00373 <span class="keywordtype">void</span> initialiseAllResourceGroups(<span class="keywordtype">void</span>); |
---|
| 151 | 00374 |
---|
| 152 | 00392 <span class="keywordtype">void</span> loadResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keywordtype">bool</span> loadMainResources = <span class="keyword">true</span>, |
---|
| 153 | 00393 <span class="keywordtype">bool</span> loadWorldGeom = <span class="keyword">true</span>); |
---|
| 154 | 00394 |
---|
| 155 | 00410 <span class="keywordtype">void</span> unloadResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keywordtype">bool</span> reloadableOnly = <span class="keyword">true</span>); |
---|
| 156 | 00411 |
---|
| 157 | 00423 <span class="keywordtype">void</span> unloadUnreferencedResourcesInGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, |
---|
| 158 | 00424 <span class="keywordtype">bool</span> reloadableOnly = <span class="keyword">true</span>); |
---|
| 159 | 00425 |
---|
| 160 | 00435 <span class="keywordtype">void</span> clearResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
| 161 | 00436 |
---|
| 162 | 00442 <span class="keywordtype">void</span> destroyResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
| 163 | 00443 |
---|
| 164 | 00465 <span class="keywordtype">void</span> addResourceLocation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& locType, |
---|
| 165 | 00466 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resGroup = DEFAULT_RESOURCE_GROUP_NAME, <span class="keywordtype">bool</span> recursive = <span class="keyword">false</span>); |
---|
| 166 | 00468 <span class="keywordtype">void</span> removeResourceLocation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, |
---|
| 167 | 00469 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resGroup = DEFAULT_RESOURCE_GROUP_NAME); |
---|
| 168 | 00470 |
---|
| 169 | 00505 <span class="keywordtype">void</span> declareResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceType, |
---|
| 170 | 00506 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME, |
---|
| 171 | 00507 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>& loadParameters = <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>()); |
---|
| 172 | 00547 <span class="keywordtype">void</span> declareResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceType, |
---|
| 173 | 00548 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader, |
---|
| 174 | 00549 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>& loadParameters = <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>()); |
---|
| 175 | 00560 <span class="keywordtype">void</span> undeclareResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 176 | 00561 |
---|
| 177 | 00581 <a class="code" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> openResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceName, |
---|
| 178 | 00582 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME, |
---|
| 179 | 00583 <span class="keywordtype">bool</span> searchGroupsIfNotFound = <span class="keyword">true</span>, <a class="code" href="classOgre_1_1Resource.html">Resource</a>* resourceBeingLoaded = 0); |
---|
| 180 | 00584 |
---|
| 181 | 00596 <a class="code" href="classOgre_1_1SharedPtr.html">DataStreamListPtr</a> openResources(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& pattern, |
---|
| 182 | 00597 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME); |
---|
| 183 | 00598 |
---|
| 184 | 00606 <a class="code" href="classOgre_1_1SharedPtr.html">StringVectorPtr</a> listResourceNames(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 185 | 00607 |
---|
| 186 | 00613 <a class="code" href="classOgre_1_1SharedPtr.html">FileInfoListPtr</a> listResourceFileInfo(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 187 | 00614 |
---|
| 188 | 00623 <a class="code" href="classOgre_1_1SharedPtr.html">StringVectorPtr</a> findResourceNames(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& pattern); |
---|
| 189 | 00624 |
---|
| 190 | 00629 <span class="keywordtype">bool</span> resourceExists(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& group, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& filename); |
---|
| 191 | 00630 |
---|
| 192 | 00635 <span class="keywordtype">bool</span> resourceExists(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* group, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& filename); |
---|
| 193 | 00642 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& findGroupContainingResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& filename); |
---|
| 194 | 00643 |
---|
| 195 | 00651 <a class="code" href="classOgre_1_1SharedPtr.html">FileInfoListPtr</a> findResourceFileInfo(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& group, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& pattern); |
---|
| 196 | 00652 |
---|
| 197 | 00653 |
---|
| 198 | 00657 <span class="keywordtype">void</span> addResourceGroupListener(ResourceGroupListener* l); |
---|
| 199 | 00659 <span class="keywordtype">void</span> removeResourceGroupListener(ResourceGroupListener* l); |
---|
| 200 | 00660 |
---|
| 201 | <a name="l00667"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagera26">00667</a> <span class="keywordtype">void</span> setWorldResourceGroupName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName) {mWorldGroupName = groupName;} |
---|
| 202 | 00668 |
---|
| 203 | <a name="l00670"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagera27">00670</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getWorldResourceGroupName(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mWorldGroupName; } |
---|
| 204 | 00671 |
---|
| 205 | 00685 <span class="keywordtype">void</span> linkWorldGeometryToResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& group, |
---|
| 206 | 00686 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& worldGeometry, <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* sceneManager); |
---|
| 207 | 00687 |
---|
| 208 | 00692 <span class="keywordtype">void</span> unlinkWorldGeometryFromResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& group); |
---|
| 209 | 00693 |
---|
| 210 | 00695 <span class="keywordtype">void</span> shutdownAll(<span class="keywordtype">void</span>); |
---|
| 211 | 00696 |
---|
| 212 | 00697 |
---|
| 213 | 00707 <span class="keywordtype">void</span> _registerResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceType, <a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* rm); |
---|
| 214 | 00708 |
---|
| 215 | 00715 <span class="keywordtype">void</span> _unregisterResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceType); |
---|
| 216 | 00716 |
---|
| 217 | 00717 |
---|
| 218 | 00722 <span class="keywordtype">void</span> _registerScriptLoader(<a class="code" href="classOgre_1_1ScriptLoader.html">ScriptLoader</a>* su); |
---|
| 219 | 00723 |
---|
| 220 | 00727 <span class="keywordtype">void</span> _unregisterScriptLoader(<a class="code" href="classOgre_1_1ScriptLoader.html">ScriptLoader</a>* su); |
---|
| 221 | 00728 |
---|
| 222 | 00732 <a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* _getResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& resourceType); |
---|
| 223 | 00733 |
---|
| 224 | 00737 <span class="keywordtype">void</span> _notifyResourceCreated(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res); |
---|
| 225 | 00738 |
---|
| 226 | 00742 <span class="keywordtype">void</span> _notifyResourceRemoved(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res); |
---|
| 227 | 00743 |
---|
| 228 | 00746 <span class="keywordtype">void</span> _notifyResourceGroupChanged(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& oldGroup, <a class="code" href="classOgre_1_1Resource.html">Resource</a>* res); |
---|
| 229 | 00747 |
---|
| 230 | 00752 <span class="keywordtype">void</span> _notifyAllResourcesRemoved(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* manager); |
---|
| 231 | 00753 |
---|
| 232 | 00761 <span class="keywordtype">void</span> _notifyWorldGeometryStageStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& description); |
---|
| 233 | 00769 <span class="keywordtype">void</span> _notifyWorldGeometryStageEnded(<span class="keywordtype">void</span>); |
---|
| 234 | 00770 |
---|
| 235 | 00776 <a class="code" href="namespaceOgre.html#a580">StringVector</a> getResourceGroups(<span class="keywordtype">void</span>); |
---|
| 236 | 00783 ResourceDeclarationList getResourceDeclarationList(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& groupName); |
---|
| 237 | 00784 |
---|
| 238 | 00800 <span class="keyword">static</span> ResourceGroupManager& getSingleton(<span class="keywordtype">void</span>); |
---|
| 239 | 00816 <span class="keyword">static</span> ResourceGroupManager* getSingletonPtr(<span class="keywordtype">void</span>); |
---|
| 240 | 00817 |
---|
| 241 | 00818 }; |
---|
| 242 | 00819 } |
---|
| 243 | 00820 |
---|
| 244 | 00821 <span class="preprocessor">#endif</span> |
---|
| 245 | </pre></div><hr> |
---|
| 246 | <p> |
---|
| 247 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
| 248 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
| 249 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
| 250 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
| 251 | <Work rdf:about=""> |
---|
| 252 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
| 253 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
| 254 | </Work> |
---|
| 255 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
| 256 | |
---|
| 257 | Last modified Sun Mar 12 14:37:48 2006 |
---|
| 258 | </p> |
---|
| 259 | </body> |
---|
| 260 | </html> |
---|