Public Member Functions | |
| QGStringBuffer (QGString *str) | |
| ~QGStringBuffer () | |
| bool | open (int m) |
| void | close () |
| void | flush () |
| uint | size () const |
| int | at () const |
| bool | at (int pos) |
| int | readBlock (char *, uint) |
| int | writeBlock (const char *p, uint len) |
| int | getch () |
| int | putch (int ch) |
| int | ungetch (int) |
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 | |
| QGString * | m_str |
Protected Attributes inherited from QIODevice | |
| int | ioIndex |
Private Member Functions | |
| QGStringBuffer (const QGStringBuffer &) | |
| QGStringBuffer & | operator= (const QGStringBuffer &) |
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 6 of file ftextstream.cpp.
| QGStringBuffer::QGStringBuffer | ( | QGString * | str | ) |
Definition at line 31 of file ftextstream.cpp.
| QGStringBuffer::~QGStringBuffer | ( | ) |
Definition at line 36 of file ftextstream.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 92 of file ftextstream.cpp.
|
virtual |
Virtual function that sets the I/O device index to pos.
Reimplemented from QIODevice.
Definition at line 97 of file ftextstream.cpp.
|
virtual |
Closes the I/O device.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 74 of file ftextstream.cpp.
|
virtual |
Flushes an open I/O device.
This virtual function must be reimplemented by all subclasses.
Implements QIODevice.
Definition at line 83 of file ftextstream.cpp.
|
inlinevirtual |
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 19 of file ftextstream.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 40 of file ftextstream.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 130 of file ftextstream.cpp.
|
inlinevirtual |
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 17 of file ftextstream.cpp.
|
virtual |
Virtual function that returns the size of the I/O device.
Implements QIODevice.
Definition at line 87 of file ftextstream.cpp.
|
inlinevirtual |
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 21 of file ftextstream.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 118 of file ftextstream.cpp.
|
protected |
Definition at line 24 of file ftextstream.cpp.
1.8.11