From: Christian P. <cp...@us...> - 2005-06-07 12:01:35
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21523/include/pclasses/System Modified Files: File.h Pipe.h Process.h StorageDevice.h Log Message: - Changed "unsigned long _handle" in I/O classes to "IOHandle* _handld" - Changed "unsigned long _handle" in Process class to "void* _handle" Index: Process.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/Process.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Process.h 23 Apr 2005 17:57:13 -0000 1.3 +++ Process.h 7 Jun 2005 12:01:20 -0000 1.4 @@ -112,7 +112,7 @@ ProcessIO& processIO() const throw(LogicError); private: - unsigned long _handle; + void* _handle; ProcessIO* _procIO; State _state; Unicode::String _workDir; Index: Pipe.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/Pipe.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Pipe.h 24 Apr 2005 11:40:20 -0000 1.10 +++ Pipe.h 7 Jun 2005 12:01:20 -0000 1.11 @@ -29,13 +29,15 @@ namespace System { +class IOHandle; + //! Anonymous pipe device class PSYSTEM_EXPORT Pipe: public IO::IODevice { public: typedef std::pair<Pipe,Pipe> Pair; Pipe(const Pipe& f) throw(IO::IOError); - Pipe(unsigned long handle, bool readEnd) throw(); + Pipe(IOHandle* handle, bool readEnd) throw(); ~Pipe() throw(); static Pair create() throw(IO::IOError); @@ -44,17 +46,14 @@ protected: void _close() throw(IO::IOError); - size_t _read(char* buffer, size_t count) throw(IO::IOError); - size_t _write(const char* buffer, size_t count) throw(IO::IOError); - void _sync() const throw(IO::IOError); - unsigned long handle() const throw(); + IOHandle* handle() const throw(); private: - unsigned long _handle; + IOHandle* _handle; }; } // !namespace System Index: StorageDevice.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/StorageDevice.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- StorageDevice.h 31 Jan 2005 11:19:11 -0000 1.2 +++ StorageDevice.h 7 Jun 2005 12:01:20 -0000 1.3 @@ -28,6 +28,8 @@ namespace System { +class IOHandle; + //! System Storage device (block device) class PSYSTEM_EXPORT StorageDevice: public IO::IODevice { public: @@ -55,10 +57,10 @@ offset_t _size() const throw(IO::IOError); //! Returns the native O/S handle - unsigned long handle() const throw(); + IOHandle* handle() const throw(); private: - unsigned long _handle; + IOHandle* _handle; }; Index: File.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/File.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- File.h 24 Apr 2005 11:40:20 -0000 1.12 +++ File.h 7 Jun 2005 12:01:19 -0000 1.13 @@ -31,6 +31,7 @@ namespace System { +class IOHandle; class FileInfo; /** @@ -84,10 +85,10 @@ offset_t _size() const throw(IO::IOError); //! Returns the native O/S handle - unsigned long handle() const throw(); + IOHandle* handle() const throw(); private: - unsigned long _handle; + IOHandle* _handle; }; } // !namespace System |