MyGUI  3.2.1
MyGUI_DataManager.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_DATA_MANAGER_H__
00008 #define __MYGUI_DATA_MANAGER_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_Singleton.h"
00012 #include "MyGUI_IDataStream.h"
00013 #include "MyGUI_Types.h"
00014 
00015 namespace MyGUI
00016 {
00017 
00018     class MYGUI_EXPORT DataManager :
00019         public Singleton<DataManager>
00020     {
00021     public:
00022 
00026         virtual IDataStream* getData(const std::string& _name) = 0;
00027 
00031         virtual void freeData(IDataStream* _data) = 0;
00032 
00036         virtual bool isDataExist(const std::string& _name) = 0;
00037 
00041         virtual const VectorString& getDataListNames(const std::string& _pattern) = 0;
00042 
00048         virtual const std::string& getDataPath(const std::string& _name) = 0;
00049     };
00050 
00051 } // namespace MyGUI
00052 
00053 #endif // __MYGUI_DATA_MANAGER_H__