#include <klimitediodevice.h>
Inherits TQIODevice.
|
| KLimitedIODevice (TQIODevice *dev, int start, int length) |
|
virtual bool | open (int m) |
|
virtual void | close () |
|
virtual void | flush () |
|
virtual Offset | size () const |
|
virtual TQ_LONG | readBlock (char *data, TQ_ULONG maxlen) |
|
virtual TQ_LONG | writeBlock (const char *, TQ_ULONG) |
|
virtual int | putch (int) |
|
virtual int | getch () |
|
virtual int | ungetch (int c) |
|
virtual Offset | at () const |
|
virtual bool | at (Offset pos) |
|
virtual bool | atEnd () const |
|
A readonly device that reads from an underlying device from a given point to another (e.g.
to give access to a single file inside an archive).
- Author
- David Faure david.nosp@m.@man.nosp@m.drake.nosp@m.soft.nosp@m..com
- Since
- 3.1
Definition at line 31 of file klimitediodevice.h.
◆ KLimitedIODevice()
KLimitedIODevice::KLimitedIODevice |
( |
TQIODevice * |
dev, |
|
|
int |
start, |
|
|
int |
length |
|
) |
| |
|
inline |
Creates a new KLimitedIODevice.
- Parameters
-
dev | the underlying device, opened or not This device itself auto-opens (in readonly mode), no need to open it. |
start | where to start reading (position in bytes) |
length | the length of the data to read (in bytes) |
Definition at line 41 of file klimitediodevice.h.
◆ ~KLimitedIODevice()
virtual KLimitedIODevice::~KLimitedIODevice |
( |
| ) |
|
|
inlinevirtual |
◆ at() [1/2]
virtual Offset KLimitedIODevice::at |
( |
| ) |
const |
|
inlinevirtual |
◆ at() [2/2]
virtual bool KLimitedIODevice::at |
( |
Offset |
pos | ) |
|
|
inlinevirtual |
◆ atEnd()
virtual bool KLimitedIODevice::atEnd |
( |
| ) |
const |
|
inlinevirtual |
◆ close()
virtual void KLimitedIODevice::close |
( |
| ) |
|
|
inlinevirtual |
◆ flush()
virtual void KLimitedIODevice::flush |
( |
| ) |
|
|
inlinevirtual |
◆ getch()
virtual int KLimitedIODevice::getch |
( |
| ) |
|
|
inlinevirtual |
◆ open()
virtual bool KLimitedIODevice::open |
( |
int |
m | ) |
|
|
inlinevirtual |
◆ putch()
virtual int KLimitedIODevice::putch |
( |
int |
| ) |
|
|
inlinevirtual |
◆ readBlock()
virtual TQ_LONG KLimitedIODevice::readBlock |
( |
char * |
data, |
|
|
TQ_ULONG |
maxlen |
|
) |
| |
|
inlinevirtual |
◆ size()
virtual Offset KLimitedIODevice::size |
( |
| ) |
const |
|
inlinevirtual |
◆ ungetch()
virtual int KLimitedIODevice::ungetch |
( |
int |
c | ) |
|
|
inlinevirtual |
◆ writeBlock()
virtual TQ_LONG KLimitedIODevice::writeBlock |
( |
const char * |
, |
|
|
TQ_ULONG |
|
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: