23 #ifndef __MYGUI_RESOURCE_MANAGER_H__
24 #define __MYGUI_RESOURCE_MANAGER_H__
50 bool load(
const std::string& _file);
52 bool _loadImplement(
const std::string& _file,
bool _match,
const std::string& _type,
const std::string& _instance);
59 std::string getFileNameByID(
const Guid& _id);
69 void unregisterLoadXmlDelegate(
const std::string& _key);
72 #ifndef MYGUI_DONT_USE_OBSOLETE
75 size_t getResourceCount() {
return getCount(); }
77 MYGUI_OBSOLETE(
"use : IResourcePtr ResourceManager::getByName(const std::string& _name, bool _throw)")
78 IResourcePtr getResource(const std::
string& _name,
bool _throw = true) {
return getByName(_name, _throw); }
80 MYGUI_OBSOLETE(
"use : IResourcePtr ResourceManager::getByID(const Guid& _id, bool _throw)")
81 IResourcePtr getResource(const
Guid& _id,
bool _throw = true) {
return getByID(_id, _throw); }
83 #endif // MYGUI_DONT_USE_OBSOLETE
86 typedef std::map<Guid, IResourcePtr> MapResourceID;
87 MapResourceID mResourcesID;
90 typedef std::map<std::string, LoadXmlDelegate> MapLoadXmlDelegate;
91 MapLoadXmlDelegate mMapLoadXmlDelegate;
93 std::string mResourceGroup;
94 typedef std::vector<Guid> VectorGuid;
95 typedef std::map<std::string, VectorGuid> MapVectorString;
97 MapVectorString mListFileGuid;
102 #endif // __MYGUI_RESOURCE_MANAGER_H__