#include <KDStream.h>
Public Member Functions | |
| KDStream (QString *outputString=0) | |
| ~KDStream () | |
| void | flush () |
| KDStream & | operator<< (bool) |
| KDStream & | operator<< (char) |
| KDStream & | operator<< (float) |
| KDStream & | operator<< (double) |
| KDStream & | operator<< (short) |
| KDStream & | operator<< (unsigned short) |
| KDStream & | operator<< (int) |
| KDStream & | operator<< (unsigned int) |
| KDStream & | operator<< (long) |
| KDStream & | operator<< (unsigned long) |
| KDStream & | operator<< (const char *) |
| KDStream & | operator<< (const void *) |
| KDStream & | operator<< (const QString &) |
| KDStream & | operator<< (const QCString &) |
| KDStream & | operator<< (const QChar &) |
| KDStream & | operator<< (const QColor &) |
| KDStream & | operator<< (const QColorGroup &) |
| KDStream & | operator<< (const QPalette &) |
| KDStream & | operator<< (const QCursor &) |
| KDStream & | operator<< (const QDate &) |
| KDStream & | operator<< (const QDateTime &) |
| KDStream & | operator<< (const QTime &) |
| KDStream & | operator<< (const QFont &) |
| KDStream & | operator<< (const QPen &) |
| KDStream & | operator<< (const QPoint &) |
| KDStream & | operator<< (const QSize &) |
| KDStream & | operator<< (const QRect &) |
| KDStream & | operator<< (const QBrush &) |
| KDStream & | operator<< (const QSizePolicy &) |
| KDStream & | operator<< (const QKeySequence &) |
| KDStream & | operator<< (const QPixmap &) |
| KDStream & | operator<< (const QImage &) |
| KDStream & | operator<< (KDSTREAMFUNC) |
| KDStream & | operator<< (const QVariant &) |
| KDStream & | operator<< (const QObject &) |
| KDStream & | operator<< (const QStrList &list) |
Protected Member Functions | |
| QString | QColor2Str (const QColor &col) |
When debugging Qt programs the streaming operators in this class offers facilities for printing out values of a number of Qt classes.
Example:
QPoint point(10,20); QString string("A test"); QFont font = qApp->font(); KDStream() << "the point is " << point << ", the string is " << string << ", the font is " << font << endl;
|
|
Creates a KDStream object. |
|
|
Flushes the data to the stream and destroys the KDStream object. |
|
|
Flushes buffered data to the stream. |
|
|
Writes a QStrList value to the stream. The output is the individual strings. |
|
|
Writes a QObject value to the stream. Included information is the class name, the object name, the properties and their types. |
|
|
Writes a QVariant value to the stream. The format is dependent on the actual contents of the QVariant object. |
|
|
Runs a stream-processing function on the stream. |
|
|
|
|
|
|
|
|
|
|
|
Writes a QSizePolicy value to the stream. The output contains the horizontal and vertical size policy and whether the policy has a "height for width" setting. |
|
|
Writes a QBrush value to the stream. The format is "QBrush" plus the brush style as listed in the QBrush reference documentation and the brush color. |
|
|
Writes a QRect value to the stream. The format is "(width x height xoffset xpos yoffset ypos)". |
|
|
Writes a QSize value to the stream. The format is "(w x h)". |
|
|
Writes a QPoint value to the stream. The format is "(x,y)". |
|
|
Writes a QPen value to the stream. The format is "QPen" plus the width, the color, and the style as defined in the QPen reference documentation. |
|
|
Writes a the raw name of a QFont value to the stream. |
|
|
Writes a QTime value to the stream. The format is the one defined by QTime::toString() and may be system-dependent. |
|
|
Writes a QDateTime value to the stream. The format is the one defined by QDateTime::toString() and may be system-dependent. |
|
|
Writes a QDate value to the stream. The format is the one defined by QDate::toString() and may be system-dependent. |
|
|
Writes a QCursor value to the stream. Each cursor is output with its name as listed in the QCursor reference documentation. |
|
|
Writes a QPalette value to the stream. Each color group is output with its role and the corresponding QColorGroup value. |
|
|
Writes a QColorGroup value to the stream. Each color role output with its name and the corresponding color value. |
|
|
Writes a QColor value to the stream. See QColor2Str for a description of the output format. |
|
|
Writes a QChar value to the stream. |
|
|
Writes a QCString value to the stream. |
|
|
Writes a QString value to the stream. |
|
|
Writes a pointer to the stream. The format is platform-dependent and defined by fprintf( ..., "%p" ). |
|
|
Writes a C-style string to the stream. |
|
|
Writes an unsigned long value to the stream. |
|
|
Writes a long value to the stream. |
|
|
Writes an unsigned int value to the stream. |
|
|
Writes an int value to the stream. |
|
|
Writes an unsigned short value to the stream. |
|
|
Writes a short value to the stream. |
|
|
Writes a double-precision floating point value to the stream. |
|
|
Writes a floating point value to the stream. |
|
|
Writes a character value to the stream. |
|
|
Writes a boolean value to the stream. The value will be represented as either "true" or "false". |
|
|
This is a helper method that converts a QColor object into a string. For the predefined Qt colors, their name is output, for all other colors, the output is in the form RRGGBB (as defined by QColor::name()). |
1.4.4