MyGUI_DataManager.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_DATA_MANAGER_H_
#define MYGUI_DATA_MANAGER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Singleton.h"
#include "MyGUI_IDataStream.h"
#include "MyGUI_Types.h"
namespace MyGUI
{
class MYGUI_EXPORT DataManager
{
MYGUI_SINGLETON_DECLARATION(DataManager);
public:
DataManager();
virtual ~DataManager() = default;
virtual IDataStream* getData(const std::string& _name) const = 0;
virtual void freeData(IDataStream* _data) = 0;
virtual bool isDataExist(const std::string& _name) const = 0;
virtual const VectorString& getDataListNames(const std::string& _pattern) const = 0;
virtual std::string getDataPath(const std::string& _name) const = 0;
};
} // namespace MyGUI
#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