X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Ffile.h;h=2af56ae67b2264913dcc3fa376ba5cde023c63b5;hp=f23cc93e7d013b71dc33cbe060cd83ce939fbe4a;hb=HEAD;hpb=991fabc1956b73a4007859058fb44171000b452e diff --git a/source/io/file.h b/source/io/file.h index f23cc93..2af56ae 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -3,6 +3,7 @@ #include #include +#include #include "buffered.h" #include "handle.h" #include "seekable.h" @@ -10,18 +11,16 @@ namespace Msp { namespace IO { -class file_not_found: public std::runtime_error +class MSPCORE_API file_not_found: public std::runtime_error { public: file_not_found(const std::string &fn): std::runtime_error(fn) { } - ~file_not_found() throw() override = default; }; -class file_already_exists: public std::runtime_error +class MSPCORE_API file_already_exists: public std::runtime_error { public: file_already_exists(const std::string &fn): std::runtime_error(fn) { } - ~file_already_exists() throw() override = default; }; @@ -30,7 +29,7 @@ A class for reading and writing files. Non-blocking mode is not supported on Win32. */ -class File: public Seekable +class MSPCORE_API File: public Seekable { public: enum CreateMode @@ -82,7 +81,7 @@ inline File::CreateMode operator~(File::CreateMode m) { return File::CreateMode(~static_cast(m)); } -class BufferedFile: public Seekable +class MSPCORE_API BufferedFile: public Seekable { private: File file;