MyGUI
3.5.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
src
MyGUI_DataFileStream.cpp
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
#include "
MyGUI_Precompiled.h
"
8
#include "
MyGUI_DataFileStream.h
"
9
10
#include <fstream>
11
12
namespace
MyGUI
13
{
14
15
DataFileStream::DataFileStream(std::unique_ptr<std::ifstream>&& _stream) :
16
DataStream(_stream.get()),
17
mFileStream(std::move(_stream))
18
{
19
}
20
21
DataFileStream::~DataFileStream()
22
{
23
if
(mFileStream)
24
mFileStream->close();
25
}
26
27
}
// namespace MyGUI
MyGUI_DataFileStream.h
MyGUI_Precompiled.h
MyGUI
Definition
MyGUI_ActionController.h:15
Generated by
1.18.0