diff options
author | crupest <crupest@outlook.com> | 2023-07-05 01:54:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-05 01:54:08 +0800 |
commit | bcfd51a7fabf7adf5f134247ca1020fac98b24b5 (patch) | |
tree | 41471cee6af6a7e49140e50ba818366b316c8ea7 /include/cru/common/io/Stream.h | |
parent | aa9bc6bb7c11e810745c80548dd5ed5b2cb08740 (diff) | |
download | cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.gz cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.bz2 cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.zip |
Add CFileStream. Move ErrnoException.
Diffstat (limited to 'include/cru/common/io/Stream.h')
-rw-r--r-- | include/cru/common/io/Stream.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cru/common/io/Stream.h b/include/cru/common/io/Stream.h index 66be4468..f833b0b9 100644 --- a/include/cru/common/io/Stream.h +++ b/include/cru/common/io/Stream.h @@ -2,12 +2,23 @@ #include "../Base.h" +#include "../Exception.h" #include "../String.h" #include <cstddef> #include <vector> namespace cru::io { +class CRU_BASE_API StreamAlreadyClosedException : public Exception { + public: + using Exception::Exception; + + CRU_DEFAULT_COPY(StreamAlreadyClosedException) + CRU_DEFAULT_MOVE(StreamAlreadyClosedException) + + CRU_DEFAULT_DESTRUCTOR(StreamAlreadyClosedException) +}; + class CRU_BASE_API Stream : public Object { public: enum class SeekOrigin { Current, Begin, End }; |