MyGUI: MyGUI_DataManager.h Source File

MyGUI 3.2.2

MyGUI_DataManager.h
Go to the documentation of this file.
1 /*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7 #ifndef MYGUI_DATA_MANAGER_H_
8 #define MYGUI_DATA_MANAGER_H_
9
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_Singleton.h"
12 #include "MyGUI_IDataStream.h"
13 #include "MyGUI_Types.h"
14
15 namespace MyGUI
16 {
17
18 class MYGUI_EXPORT DataManager :
19 public Singleton<DataManager>
20 {
21 public:
22
26 virtual IDataStream* getData(const std::string& _name) = 0;
27
31 virtual void freeData(IDataStream* _data) = 0;
32
36 virtual bool isDataExist(const std::string& _name) = 0;
37
41 virtual const VectorString& getDataListNames(const std::string& _pattern) = 0;
42
48 virtual const std::string& getDataPath(const std::string& _name) = 0;
49 };
50
51 } // namespace MyGUI
52
53 #endif // MYGUI_DATA_MANAGER_H_
MyGUI_IDataStream.h
MyGUI_Prerequest.h
MyGUI_Singleton.h
MyGUI::DataManager
Definition: MyGUI_DataManager.h:18
MyGUI::IDataStream
Definition: MyGUI_IDataStream.h:16
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI_Types.h
MyGUI::Singleton
Definition: MyGUI_Singleton.h:20
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI::VectorString
std::vector< std::string > VectorString
Definition: MyGUI_Types.h:39