#include <mtextstream.h>
Inheritance diagram for TextIStream:
Public Methods | |
virtual TextIStream & | operator>> (char &ch) |
virtual TextIStream & | operator>> (int &value) |
virtual TextIStream & | operator>> (long &value) |
virtual TextIStream & | operator>> (float &value) |
virtual TextIStream & | operator>> (double &value) |
virtual TextIStream & | operator>> (String &buffer) |
virtual uint | readRawBytes (char *data, uint maxlen) |
int | readLine (String &linebuf) |
TextIStream & | read (char *p, int n) |
Definition at line 131 of file mtextstream.h.
|
Read a word from stream. The word is delimited with a whitespace character. The function skips any whitespace character in front of the word. It does not, however, skip any whitespace after it. Implements IStream. Definition at line 422 of file mtextstream.cc. |
|
Read double-precision floating-point value from stream. Skips any whitespace in front of the value, for example " 42" or " \t\n42". Does not skip any whitespace after the value. The following regular expression defines the number format: [+-]?[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)? For example, values such as "42", "-42", "+42", "+42.12345", "0.123", "1.5E10", "4.2E+10", and "4.2E-10" are valid. Strings such as "42.", "42E" are not valid. Implements IStream. Definition at line 293 of file mtextstream.cc. References IODevice::atEnd(), checkDevice(), IODevice::getch(), and IODevice::ungetch(). |
|
Read floating-point value from stream. Skips any whitespace in front of the value, for example " 42" or " \t\n42". Does not skip any whitespace after the value. The following regular expression defines the number format: [+-]?[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)? For example, values such as "42", "-42", "+42", "+42.12345", "0.123", "1.5E10", "4.2E+10", and "4.2E-10" are valid. Strings such as "42.", "42E" are not valid. Implements IStream. Definition at line 404 of file mtextstream.cc. |
|
Read long value from stream.
Implements IStream. Definition at line 236 of file mtextstream.cc. References IODevice::atEnd(), checkDevice(), IODevice::getch(), and IODevice::ungetch(). |
|
Read integer value from stream.
Implements IStream. Definition at line 267 of file mtextstream.cc. |
|
Read character from stream.
Implements IStream. Definition at line 225 of file mtextstream.cc. References checkDevice(), and IODevice::getch(). |
|
Reads a word from stream.
Definition at line 434 of file mtextstream.cc. References String::length(). |
|
Reads line to given buffer.
Definition at line 465 of file mtextstream.cc. References String::append(), IODevice::atEnd(), String::empty(), IODevice::isOpen(), and IODevice::readLine(). |
|
Reads a raw byte block from stream.
Implements IStream. Definition at line 451 of file mtextstream.cc. References IODevice::readBlock(). |