X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Ffile.h;h=d106561e5f599cc31367be5f3de9140a4d349cbf;hp=5fb0353211b2e99d23384afa2924e87ee78acc10;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hpb=8642ac1b4478419630911a51a53fe8ef5fb46647 diff --git a/source/io/file.h b/source/io/file.h index 5fb0353..d106561 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -15,12 +15,14 @@ class file_not_found: public std::runtime_error { public: file_not_found(const std::string &fn): std::runtime_error(fn) { } + ~file_not_found() throw() { } }; class file_already_exists: public std::runtime_error { public: file_already_exists(const std::string &fn): std::runtime_error(fn) { } + ~file_already_exists() throw() { } }; @@ -50,6 +52,9 @@ public: write access is requested and the file does exist, it is created. Otherwise a missing file is an error. */ File(const std::string &, Mode = M_READ, CreateMode = C_OVERWRITE); +private: + void platform_init(const std::string &, CreateMode); +public: virtual ~File(); void set_block(bool);