aboutsummaryrefslogtreecommitdiffstats
path: root/common/alfstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/alfstream.h')
-rw-r--r--common/alfstream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/alfstream.h b/common/alfstream.h
index 046a6e2a..353fd2de 100644
--- a/common/alfstream.h
+++ b/common/alfstream.h
@@ -34,6 +34,8 @@ public:
bool open(const char *filename, std::ios_base::openmode mode);
bool is_open() const noexcept { return mFile != INVALID_HANDLE_VALUE; }
+
+ void close();
};
// Inherit from std::istream to use our custom streambuf
@@ -50,6 +52,8 @@ public:
~ifstream() override;
bool is_open() const noexcept { return mStreamBuf.is_open(); }
+
+ void close() { mStreamBuf.close(); }
};
} // namespace al