X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Ffile.h;h=cd547b37545cb23b6f0c3842c512a7cf13847905;hb=e4afb5edb0b7834ef4872218c99207e6b589e9ce;hp=d59cd577fc0f33e1acbcbb62bcaa9fa0bb31c141;hpb=86e0004bd195bc7f7478cf736871339bddf38127;p=libs%2Fcore.git diff --git a/source/io/file.h b/source/io/file.h index d59cd57..cd547b3 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -5,6 +5,7 @@ #include #include "buffered.h" #include "filtered.h" +#include "handle.h" #include "seekable.h" namespace Msp { @@ -42,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: @@ -55,10 +52,8 @@ protected: public: virtual void sync(); - virtual unsigned seek(int, SeekType); - virtual unsigned tell() const; - - virtual Handle get_event_handle() { return handle; } + virtual SeekOffset seek(SeekOffset, SeekType); + virtual SeekOffset tell() const; private: void check_access(Mode) const;