MyGUI: MyGUI_DataManager.h Source File

MyGUI 3.4.3

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
15namespace MyGUI
16{
17
18 class MYGUI_EXPORT DataManager
19 {
20 MYGUI_SINGLETON_DECLARATION(DataManager);
21
22 public:
23 DataManager();
24 virtual ~DataManager() = default;
25
29 virtual IDataStream* getData(const std::string& _name) const = 0;
30
34 virtual void freeData(IDataStream* _data) = 0;
35
39 virtual bool isDataExist(const std::string& _name) const = 0;
40
44 virtual const VectorString& getDataListNames(const std::string& _pattern) const = 0;
45
51 virtual std::string getDataPath(const std::string& _name) const = 0;
52 };
53
54} // namespace MyGUI
55
56#endif // MYGUI_DATA_MANAGER_H_
MyGUI_IDataStream.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:112
MyGUI_Types.h
MyGUI::DataManager::~DataManager
virtual ~DataManager()=default
MyGUI::DataManager::freeData
virtual void freeData(IDataStream *_data)=0
MyGUI::DataManager::getData
virtual IDataStream * getData(const std::string &_name) const =0
MyGUI::DataManager::DataManager
DataManager(const DataManager &)=delete
MyGUI::DataManager::getDataPath
virtual std::string getDataPath(const std::string &_name) const =0
MyGUI::DataManager::getDataListNames
virtual const VectorString & getDataListNames(const std::string &_pattern) const =0
MyGUI::DataManager::isDataExist
virtual bool isDataExist(const std::string &_name) const =0
MyGUI::IDataStream
Definition MyGUI_IDataStream.h:17
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::VectorString
std::vector< std::string > VectorString
Definition MyGUI_Types.h:41