7#ifndef MYGUI_RESOURCE_MANAGER_H_
8#define MYGUI_RESOURCE_MANAGER_H_
34 bool load(
const std::string&
_file);
52 void unregisterLoadXmlDelegate(std::string_view
_key);
55 bool isExist(std::string_view
_name)
const;
63 bool removeByName(std::string_view
_name);
67 using MapResource = std::map<std::string, IResource*, std::less<>>;
72 size_t getCount()
const;
74 const std::string& getCategoryName()
const;
82 using MapLoadXmlDelegate = std::map<std::string, LoadXmlDelegate, std::less<>>;
83 MapLoadXmlDelegate mMapLoadXmlDelegate;
87 using VectorResource = std::vector<IResource*>;
88 VectorResource mRemovedResources;
90 bool mIsInitialise{
false};
91 std::string mCategoryName;
92 std::string mXmlListTagName;
#define MYGUI_SINGLETON_DECLARATION(ClassName)
std::map< std::string, IResource *, std::less<> > MapResource