From: Christian P. <cp...@us...> - 2005-01-30 17:09:55
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31304/include/pclasses/System Modified Files: File.h Log Message: Moved inline docs to IODevice. Index: File.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/File.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- File.h 6 Jan 2005 17:23:06 -0000 1.10 +++ File.h 30 Jan 2005 17:09:46 -0000 1.11 @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2004 by Christian Prochnow * + * Copyright (C) 2004, 2005 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * @@ -73,54 +73,18 @@ static void unlink(const Unicode::String& path) throw(IO::IOError); protected: - /** - Frees any resources associated with this object, like filehandles. - */ void _close() throw(IO::IOError); - - /** - Reads up to count bytes and stores them in - buffer. Returns the number of bytes read. - */ size_t _read(char* buffer, size_t count) throw(IO::IOError); - - /** - Tries to extract up to count bytes from this object - without consuming them. The bytes are stored in - buffer, and the number of bytes read is returned. - - */ - size_t _peek(char* buffer, size_t count) throw(IO::IOError); - - /** - Writes count bytes from buffer to this object's - internal representation. - */ size_t _write(const char* buffer, size_t count) throw(IO::IOError); - - /** - Tries to move the current read position to the given offset. - SeekMode determines the relative starting point of offset. - - */ + size_t _peek(char* buffer, size_t count) throw(IO::IOError); offset_t _seek(offset_t offset, SeekMode mode) throw(IO::IOError); - - /** - Returns true if seek() is supported. - */ bool _isSeekable() const throw(); - - /** - @fixme: Same as conventional sync() functions??? - - */ void _sync() const throw(IO::IOError); - - /** - Returns the size of this File on disk. - */ offset_t _size() const throw(IO::IOError); + //! Returns the native O/S handle + unsigned long handle() const throw(); + private: unsigned long _handle; }; |