X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Ffile.h;fp=source%2Fio%2Ffile.h;h=2af56ae67b2264913dcc3fa376ba5cde023c63b5;hp=106813144615f6767d1e1247432903505154ec48;hb=5d3a5019399f97af0371f4fd6dc415d36de6ac3a;hpb=5d51c374869f13f762039f58c03f3c5d75c12f07 diff --git a/source/io/file.h b/source/io/file.h index 1068131..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,13 +11,13 @@ 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) { } }; -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) { } @@ -28,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 @@ -80,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;