X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Ffile.h;h=430571f909d872854e64d11ac43917442541f121;hb=426a1f61095aff13025b707e89105ad1e4570616;hp=57dc6831449416a0a0e9af75626ac1702757c8ce;hpb=31e72f50fbb34d86877e5110401c49ce3fefd4bb;p=libs%2Fcore.git diff --git a/source/io/file.h b/source/io/file.h index 57dc683..430571f 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -43,10 +43,6 @@ public: File(const std::string &, Mode = M_READ, CreateMode = CreateMode(C_CREATE+C_TRUNCATE)); virtual ~File(); - /** Closes the file. Any attempt to access the file after this will cause - an exception to be thrown. */ - void close(); - void set_block(bool); protected: @@ -56,13 +52,10 @@ protected: public: virtual void sync(); - virtual unsigned seek(int, SeekType); - virtual unsigned tell() const; - - virtual const Handle &get_event_handle() { return handle; } + virtual SeekOffset seek(SeekOffset, SeekType); + virtual SeekOffset tell() const; -private: - void check_access(Mode) const; + virtual const Handle &get_handle(Mode); }; inline File::CreateMode operator|(File::CreateMode m, File::CreateMode n)