MyGUI 3.4.1
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
19 {
21 public:
23 virtual ~DataManager() = default;
24
28 virtual IDataStream* getData(const std::string& _name) const = 0;
29
33 virtual void freeData(IDataStream* _data) = 0;
34
38 virtual bool isDataExist(const std::string& _name) const = 0;
39
43 virtual const VectorString& getDataListNames(const std::string& _pattern) const = 0;
44
50 virtual const std::string& getDataPath(const std::string& _name) const = 0;
51 };
52
53} // namespace MyGUI
54
55#endif // MYGUI_DATA_MANAGER_H_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)
virtual ~DataManager()=default
virtual const std::string & getDataPath(const std::string &_name) const =0
virtual void freeData(IDataStream *_data)=0
virtual IDataStream * getData(const std::string &_name) const =0
virtual const VectorString & getDataListNames(const std::string &_pattern) const =0
virtual bool isDataExist(const std::string &_name) const =0
std::vector< std::string > VectorString
Definition: MyGUI_Types.h:40