From f23402dacdf32549d3b13384af7a8a7c097ff420 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 18 Aug 2020 23:36:05 +0100 Subject: Add FileStream wrapper --- src/OSSupport/File.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/OSSupport/File.h') diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h index 9987c41c7..b2099e9fd 100644 --- a/src/OSSupport/File.h +++ b/src/OSSupport/File.h @@ -185,3 +185,19 @@ private: + +/** A wrapper for file streams that enables exceptions. */ +template +class FileStream final : public StreamType +{ +public: + + FileStream(const std::string & Path); +}; + + + + + +using InputFileStream = FileStream; +using OutputFileStream = FileStream; -- cgit v1.2.3