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
19 {
21
22 public:
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_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)
virtual ~DataManager()=default
virtual void freeData(IDataStream *_data)=0
virtual IDataStream * getData(const std::string &_name) const =0
virtual std::string getDataPath(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:41