7 #ifndef __MYGUI_RESOURCE_MANAGER_H__
8 #define __MYGUI_RESOURCE_MANAGER_H__
33 bool load(
const std::string& _file);
49 void unregisterLoadXmlDelegate(
const std::string& _key);
52 bool isExist(
const std::string& _name)
const;
55 IResource* findByName(
const std::string& _name)
const;
58 IResource* getByName(
const std::string& _name,
bool _throw =
true)
const;
60 bool removeByName(
const std::string& _name);
69 size_t getCount()
const;
71 const std::string& getCategoryName()
const;
75 bool _loadImplement(
const std::string& _file,
bool _match,
const std::string& _type,
const std::string& _instance);
79 typedef std::map<std::string, LoadXmlDelegate> MapLoadXmlDelegate;
80 MapLoadXmlDelegate mMapLoadXmlDelegate;
84 typedef std::vector<IResource*> VectorResource;
85 VectorResource mRemovedResoures;
88 std::string mCategoryName;
89 std::string mXmlListTagName;
94 #endif // __MYGUI_RESOURCE_MANAGER_H__