]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/file.h
Put the check_access function in Base
[libs/core.git] / source / io / file.h
index ed0a3f8336ac42ff0237e2cfcb4e95d2f7b97d07..6c7169718872a4fb5b8128723fd5ebcb28ba711c 100644 (file)
@@ -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,11 +52,8 @@ protected:
 public:
        virtual void sync();
 
-       virtual unsigned seek(int, SeekType);
-       virtual unsigned tell() const;
-
-private:
-       void check_access(Mode) const;
+       virtual SeekOffset seek(SeekOffset, SeekType);
+       virtual SeekOffset tell() const;
 };
 
 inline File::CreateMode operator|(File::CreateMode m, File::CreateMode n)