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:
public:
virtual void sync();
- virtual unsigned seek(int, SeekType);
- virtual unsigned tell() const;
-
- virtual const Handle &get_event_handle() { return handle; }
-
-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)