Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

resource_manager.cpp

Go to the documentation of this file.
00001 /*
00002 **  ClanLib SDK
00003 **  Copyright (c) 1997-2005 The ClanLib Team
00004 **
00005 **  This software is provided 'as-is', without any express or implied
00006 **  warranty.  In no event will the authors be held liable for any damages
00007 **  arising from the use of this software.
00008 **
00009 **  Permission is granted to anyone to use this software for any purpose,
00010 **  including commercial applications, and to alter it and redistribute it
00011 **  freely, subject to the following restrictions:
00012 **
00013 **  1. The origin of this software must not be misrepresented; you must not
00014 **     claim that you wrote the original software. If you use this software
00015 **     in a product, an acknowledgment in the product documentation would be
00016 **     appreciated but is not required.
00017 **  2. Altered source versions must be plainly marked as such, and must not be
00018 **     misrepresented as being the original software.
00019 **  3. This notice may not be removed or altered from any source distribution.
00020 **
00021 **  Note: Some of the libraries ClanLib link to may have additional
00022 **  requirements or restrictions.
00023 **
00024 **  File Author(s):
00025 **
00026 **    Magnus Norddahl
00027 */
00028 
00029 #include "precomp.h"
00030 #include "resource_manager.h"
00031 #include "resource.h"
00032 #include "virtual_directory.h"
00033 #include "dom_document.h"
00034 #include <map>
00035 
00037 // CL_ResourceManager_Impl Class:
00038 
00039 class CL_ResourceManager_Impl
00040 {
00042 public:
00043         CL_VirtualDirectory directory;
00044 
00045         CL_DomDocument document;
00046 
00047         std::map<CL_StringA, CL_Resource> resources;
00048 
00049         CL_Mutex mutex;
00050 };
00051 
00053 // CL_ResourceManager Construction:
00054 
00055 CL_ResourceManager::CL_ResourceManager()
00056 {
00057 }
00058 
00059 CL_ResourceManager::~CL_ResourceManager()
00060 {
00061 }
00062 
00064 // CL_ResourceManager Attributes:
00065 
00066 bool CL_ResourceManager::resource_exists(const CL_StringA &resource_id) const
00067 {
00068         return false;
00069 }
00070 
00071 std::vector<CL_StringA> CL_ResourceManager::get_section_names() const
00072 {
00073         std::vector<CL_StringA> names;
00074         return names;
00075 }
00076 
00077 std::vector<CL_StringA> CL_ResourceManager::get_resource_names() const
00078 {
00079         std::vector<CL_StringA> names;
00080         return names;
00081 }
00082 
00083 std::vector<CL_StringA> CL_ResourceManager::get_resource_names(const CL_StringA &section) const
00084 {
00085         std::vector<CL_StringA> names;
00086         return names;
00087 }
00088 
00089 std::vector<CL_StringA> CL_ResourceManager::get_resource_names_of_type(const CL_StringA &type) const
00090 {
00091         std::vector<CL_StringA> names;
00092         return names;
00093 }
00094 
00095 std::vector<CL_StringA> CL_ResourceManager::get_resource_names_of_type(
00096         const CL_StringA &type,
00097         const CL_StringA &section) const
00098 {
00099         std::vector<CL_StringA> names;
00100         return names;
00101 }
00102 
00103 CL_Resource CL_ResourceManager::get_resource(
00104         const CL_StringA &resource_id,
00105         bool resolve_alias,
00106         int reserved)
00107 {
00108         return CL_Resource();
00109 }
00110 
00111 CL_VirtualDirectory CL_ResourceManager::get_directory() const
00112 {
00113         return impl->directory;
00114 }
00115 
00117 // CL_ResourceManager Operations:
00118 
00119 void CL_ResourceManager::add_resources(const CL_ResourceManager& additional_resources)
00120 {
00121 }
00122 
00123 void CL_ResourceManager::remove_resources(const CL_ResourceManager& additional_resources)
00124 {
00125 }
00126 
00127 CL_Resource CL_ResourceManager::create_resource(const CL_StringA &resource_id, const CL_StringA &type)
00128 {
00129         return CL_Resource();
00130 }
00131 
00132 void CL_ResourceManager::destroy_resource(const CL_StringA &resource_id)
00133 {
00134 }
00135 
00136 void CL_ResourceManager::destroy_resource(const CL_Resource &resource)
00137 {
00138 }
00139 
00140 void CL_ResourceManager::save(const CL_StringA &filename)
00141 {
00142 }
00143 
00144 void CL_ResourceManager::save(const CL_StringA &filename, const CL_VirtualDirectory &directory)
00145 {
00146 }
00147 
00148 void CL_ResourceManager::save(const CL_IODevice *file)
00149 {
00150 }
00151 
00152 void CL_ResourceManager::load(const CL_StringA &filename)
00153 {
00154 }
00155 
00156 void CL_ResourceManager::load(const CL_StringA &filename, const CL_VirtualDirectory &directory)
00157 {
00158 }
00159 
00160 void CL_ResourceManager::load(const CL_IODevice *file, const CL_VirtualDirectory &directory)
00161 {
00162 }
00163 
00164 void CL_ResourceManager::set_directory(const CL_VirtualDirectory &directory)
00165 {
00166 }
00167 
00169 // CL_ResourceManager Implementation:
00170 
00171 CL_ResourceManager::CL_ResourceManager(CL_WeakPtr<CL_ResourceManager_Impl> &impl) : impl(impl)
00172 {
00173 }

Generated on Sat Feb 19 22:51:16 2005 for npcore by  doxygen 1.4.1