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;
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Enumerator< MapResource > EnumeratorPtr
delegates::CDelegate3< xml::ElementPtr, const std::string &, Version > LoadXmlDelegate
std::map< std::string, IResource * > MapResource