#include <piodevice.h>
Inheritance diagram for P::IODevice:

Public Types | |
| enum | accessMode_t { Read, Write, ReadWrite } |
| Device access mode. More... | |
| enum | shareMode_t { AllowNone, AllowRead, AllowWrite, AllowReadWrite } |
| Device sharing mode. More... | |
| enum | seekMode_t { seekSet, seekCurrent, seekEnd } |
| Operation modes for seek(). More... | |
Public Member Functions | |
| IODevice () throw () | |
| Default constructor. | |
| IODevice (io_handle_t handle) throw (IOError) | |
| Native handle constructor. | |
| IODevice (const IODevice &dev) throw (IOError) | |
| Copy constructor. | |
| virtual | ~IODevice () throw () |
| Destructor. | |
| virtual void | close () throw (IOError) |
| Close i/o device. | |
| virtual size_t | write (const char *buffer, size_t count) throw (IOError) |
| Write to device. | |
| virtual size_t | read (char *buffer, size_t count) throw (IOError) |
| Read from device. | |
| virtual size_t | peek (char *buffer, size_t count) throw (IOError) |
| Peek incoming data on device. | |
| virtual void | commit () throw (IOError) |
| Sync device with disk. | |
| virtual off_t | seek (off_t offset, seekMode_t mode) throw (IOError) |
| virtual bool | isSeekable () const throw () |
| Test if device is seekable. | |
| bool | isValid () const throw () |
| Test if device is valid. | |
| IODevice & | operator= (const IODevice &dev) throw (IOError) |
| io_handle_t | handle () const throw () |
| Returns the native handle. | |
Static Public Member Functions | |
| void | copy (IODevice &src, IODevice &dst, bool commit=false) |
Protected Member Functions | |
| void | setHandle (io_handle_t handle) throw () |
Definition at line 46 of file piodevice.h.
|
|
Device access mode. Specifies how you want to access the device.
Definition at line 52 of file piodevice.h. |
|
|
Operation modes for seek().
Definition at line 71 of file piodevice.h. |
|
|
Device sharing mode. The device sharing mode is used to enable other processes to share the device while your process has it open.
Definition at line 63 of file piodevice.h. |
|
|
Default constructor.
Definition at line 78 of file piodevice.h. |
|
|
Native handle constructor. The native I/O handle will be duplicated. |
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Close i/o device.
Reimplemented in P::FileStream, P::FTPClient, P::NamedPipe, P::ProcessIO, P::Socket, and P::StreamSocket. |
|
|
Sync device with disk.
Reimplemented in P::FileStream. |
|
||||||||||||||||
|
|
|
|
Returns the native handle.
Definition at line 132 of file piodevice.h. References P::io_handle_t. |
|
|
Test if device is seekable.
Reimplemented in P::NamedPipe, P::Pipe, and P::Socket. |
|
|
Test if device is valid.
Definition at line 126 of file piodevice.h. References P::INVALID_HANDLE_VALUE. |
|
|
|
|
||||||||||||
|
Peek incoming data on device. Retrieves data from the receive queue without removing it.
Reimplemented in P::File, P::NamedPipe, P::Socket, and P::DatagramSocket. Definition at line 110 of file piodevice.h. References P_SOURCEINFO. |
|
||||||||||||
|
Read from device.
Reimplemented in P::FTPData, P::ProcessIO, P::Socket, and P::DatagramSocket. |
|
||||||||||||
|
|
|
|
Definition at line 138 of file piodevice.h. |
|
||||||||||||
|
Write to device.
Reimplemented in P::FTPData, P::ProcessIO, P::Socket, and P::DatagramSocket. |
1.3.3