MyGUI: MyGUI_DataFileStream.cpp Source File

MyGUI 3.4.3

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
10namespace MyGUI
11{
12
13 DataFileStream::DataFileStream(std::unique_ptr<std::ifstream>&& _stream) :
14 DataStream(_stream.get()),
15 mFileStream(std::move(_stream))
16 {
17 }
18
19 DataFileStream::~DataFileStream()
20 {
21 if (mFileStream)
22 mFileStream->close();
23 }
24
25} // namespace MyGUI
MyGUI_DataFileStream.h
MyGUI_Precompiled.h
MyGUI::DataFileStream::DataFileStream
DataFileStream()=default
MyGUI::DataFileStream::~DataFileStream
~DataFileStream() override
Definition MyGUI_DataFileStream.cpp:19
MyGUI::DataStream::DataStream
DataStream()
Definition MyGUI_DataStream.cpp:13
MyGUI
Definition MyGUI_ActionController.h:15