MyGUI 3.4.1
MyGUI_DataStreamHolder.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_STREAM_HOLDER_H_
8#define MYGUI_DATA_STREAM_HOLDER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_DataManager.h"
12
13namespace MyGUI
14{
15
17 {
18 public:
20 mData(_data)
21 {
22 }
23
24 DataStreamHolder(const DataStreamHolder& _other) = default;
25
27 {
29 }
30
32 {
33 return mData;
34 }
35
36 private:
37 IDataStream* mData;
38 };
39
40} // namespace MyGUI
41
42#endif // MYGUI_DATA_STREAM_HOLDER_H_
virtual void freeData(IDataStream *_data)=0
static DataManager & getInstance()
DataStreamHolder(const DataStreamHolder &_other)=default
DataStreamHolder(IDataStream *_data)