Public Member Functions | |
| QStringBuffer (QString *str) | |
| ~QStringBuffer () | |
| bool | open (int m) |
| void | close () |
| void | flush () |
| uint | size () const |
| int | at () const |
| bool | at (int pos) |
| int | readBlock (char *p, uint len) |
| int | writeBlock (const char *p, uint len) |
| int | getch () |
| int | putch (int ch) |
| int | ungetch (int ch) |
Public Member Functions inherited from QIODevice | |
| QIODevice () | |
| virtual | ~QIODevice () |
| int | flags () const |
| int | mode () const |
| int | state () const |
| bool | isDirectAccess () const |
| bool | isSequentialAccess () const |
| bool | isCombinedAccess () const |
| bool | isBuffered () const |
| bool | isRaw () const |
| bool | isSynchronous () const |
| bool | isAsynchronous () const |
| bool | isTranslated () const |
| bool | isReadable () const |
| bool | isWritable () const |
| bool | isReadWrite () const |
| bool | isInactive () const |
| bool | isOpen () const |
| int | status () const |
| void | resetStatus () |
| virtual bool | atEnd () const |
| bool | reset () |
| virtual int | readLine (char *data, uint maxlen) |
| int | writeBlock (const QByteArray &data) |
| QByteArray | readAll () |
Protected Attributes | |
| QString * | s |
Protected Attributes inherited from QIODevice | |
| int | ioIndex |
Private Member Functions | |
| QStringBuffer (const QStringBuffer &) | |
| QStringBuffer & | operator= (const QStringBuffer &) |
Additional Inherited Members | |
Protected Member Functions inherited from QIODevice | |
| void | setFlags (int f) |
| void | setType (int) |
| void | setMode (int) |
| void | setState (int) |
| void | setStatus (int) |
Definition at line 258 of file qtextstream.cpp.
| QStringBuffer::QStringBuffer | ( | QString * | str | ) |
Definition at line 282 of file qtextstream.cpp.
| QStringBuffer::~QStringBuffer | ( | ) |
Definition at line 287 of file qtextstream.cpp.
|
private |
|
virtual |
Virtual function that returns the current I/O device index.
This index is the data read/write head of the I/O device.
Reimplemented from QIODevice.
Definition at line 337 of file qtextstream.cpp.
|
virtual |
Virtual function that sets the I/O device index to pos.
Reimplemented from QIODevice.
Definition at line 342 of file qtextstream.cpp.
|
virtual |
Closes the I/O device.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 320 of file qtextstream.cpp.
|
virtual |
Flushes an open I/O device.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 328 of file qtextstream.cpp.
|
virtual |
Reads a single byte/character from the I/O device.
Returns the byte/character read, or -1 if the end of the I/O device has been reached.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 417 of file qtextstream.cpp.
|
virtual |
Opens the I/O device using the specified mode. Returns TRUE if successful, or FALSE if the device could not be opened.
The mode parameter m must be a combination of the following flags.
IO_Raw specified raw (unbuffered) file access. IO_ReadOnly opens a file in read-only mode. IO_WriteOnly opens a file in write-only mode. IO_ReadWrite opens a file in read/write mode. IO_Append sets the file index to the end of the file. IO_Truncate truncates the file. IO_Translate enables carriage returns and linefeed translation for text files under MS-DOS, Window, OS/2 and Macintosh. On Unix systems this flag has no effect. Use with caution as it will also transform every linefeed written to the file into a CRLF pair. This is likely to corrupt your file when writing binary data to it. Cannot be combined with IO_Raw. This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 292 of file qtextstream.cpp.
|
private |
|
virtual |
Writes the character ch to the I/O device.
Returns ch, or -1 if some error occurred.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 436 of file qtextstream.cpp.
|
virtual |
Reads at most maxlen bytes from the I/O device into data and returns the number of bytes actually read.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 361 of file qtextstream.cpp.
|
virtual |
Virtual function that returns the size of the I/O device.
Implements QIODevice.
Definition at line 332 of file qtextstream.cpp.
|
virtual |
Puts the character ch back into the I/O device and decrements the index if it is not zero.
This function is normally called to "undo" a getch() operation.
Returns ch, or -1 if some error occurred.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 445 of file qtextstream.cpp.
|
virtual |
Writes len bytes from p to the I/O device and returns the number of bytes actually written.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 388 of file qtextstream.cpp.
|
protected |
Definition at line 274 of file qtextstream.cpp.
1.8.11