.TH "kdbgstream" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
kdbgstream \- kdbgstream is a text stream that allows you to print debug messages.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdebug.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBkdbgstream\fP (unsigned int _area, unsigned int _level, bool _print=true)"
.br
.ti -1c
.RI "\fBkdbgstream\fP (const char *initialString, unsigned int _area, unsigned int _level, bool _print=true)"
.br
.ti -1c
.RI "\fBkdbgstream\fP (\fBkdbgstream\fP &str)"
.br
.ti -1c
.RI "\fBkdbgstream\fP (const \fBkdbgstream\fP &str)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (bool i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (short i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned short i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (char ch)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned char ch)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (int i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned int i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (long i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned long i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (Q_LLONG i)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (Q_ULLONG i)"
.br
.ti -1c
.RI "void \fBflush\fP ()"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (\fBQChar\fP ch)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQString\fP &string)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const char *string)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQCString\fP &string)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const void *p)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (KDBGFUNC f)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (double d)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBform\fP (const char *format,...)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQWidget\fP *widget)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQDateTime\fP &dateTime)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQDate\fP &date)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQTime\fP &time)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQPoint\fP &point)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQSize\fP &size)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQRect\fP &rect)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQRegion\fP &region)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBKURL\fP &url)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQStringList\fP &list)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQColor\fP &color)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQPen\fP &pen)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQBrush\fP &brush)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQVariant\fP &variant)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const \fBQByteArray\fP &data)"
.br
.ti -1c
.RI "template<class T> \fBkdbgstream\fP & \fBoperator<<\fP (const \fBQValueList\fP< T > &list)"
.br
.in -1c
.SH "Detailed Description"
.PP 
kdbgstream is a text stream that allows you to print debug messages. 

Using the overloaded '<<' operator you can send messages. Usually you do not create the kdbgstream yourself, but use kdDebug() kdWarning(), kdError() or kdFatal to obtain one.
.PP
Example: 
.PP
.nf
    int i = 5;
    kdDebug() << 'The value of i is ' << i << endl;

.fi
.PP
 
.PP
\fBSee also:\fP
.RS 4
\fBkndbgstream\fP 
.RE
.PP

.PP
Definition at line 80 of file kdebug.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "kdbgstream::kdbgstream (\fBkdbgstream\fP & str)"
.PP
Copy constructor. 
.PP
Definition at line 327 of file kdebug.cpp.
.PP
References output, and QString::truncate().
.SH "Member Function Documentation"
.PP 
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (bool i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the boolean to print (as 'true' or 'false') 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 99 of file kdebug.h.
.PP
References QString::fromLatin1().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (short i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the short to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 109 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned short i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the unsigned short to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 119 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (char ch)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIch\fP the char to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 359 of file kdebug.cpp.
.PP
References flush(), QString::number(), and QString::rightJustify().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned char ch)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIch\fP the unsigned char to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 135 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (int i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the int to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 143 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned int i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the unsigned int to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 153 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (long i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 163 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned long i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the unsigned long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 173 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (Q_LLONG i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the long long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 183 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (Q_ULLONG i)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the unsigned long long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 193 of file kdebug.h.
.PP
References QString::setNum().
.SS "void kdbgstream::flush ()"
.PP
Flushes the output. 
.PP
Definition at line 333 of file kdebug.cpp.
.PP
References QString::isEmpty(), and QString::local8Bit().
.PP
Referenced by operator<<().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (\fBQChar\fP ch)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIch\fP the char to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 371 of file kdebug.cpp.
.PP
References flush(), QChar::isPrint(), QString::number(), QString::rightJustify(), and QChar::unicode().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const \fBQString\fP & string)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 216 of file kdebug.h.
.PP
References flush().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const char * string)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 228 of file kdebug.h.
.PP
References flush(), and QString::fromUtf8().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const \fBQCString\fP & string)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 240 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const void * p)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIp\fP a pointer to print (in number form) 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 249 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (KDBGFUNC f)\fC [inline]\fP"
.PP
Invokes the given function. 
.PP
\fBParameters:\fP
.RS 4
\fIf\fP the function to invoke 
.RE
.PP
\fBReturns:\fP
.RS 4
the return value of \fCf\fP 
.RE
.PP

.PP
Definition at line 258 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (double d)\fC [inline]\fP"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fId\fP the double to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 267 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP & kdbgstream::form (const char * format,  ...)"
.PP
Prints the string \fCformat\fP which can contain printf-style formatted values. 
.PP
\fBParameters:\fP
.RS 4
\fIformat\fP the printf-style format 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 340 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQWidget\fP * widget)"
.PP
Operator to print out basic information about a \fBQWidget\fP. 
.PP
Output of class names only works if the class is moc'ified. 
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP the widget to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 388 of file kdebug.cpp.
.PP
References QString::at(), flush(), QString::length(), and QString::setNum().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQDateTime\fP & dateTime)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIdateTime\fP the datetime to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 428 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQDate\fP & date)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIdate\fP the date to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 432 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQTime\fP & time)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fItime\fP the time to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 437 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQPoint\fP & point)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIpoint\fP the point to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 441 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQSize\fP & size)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIsize\fP the \fBQSize\fP to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 445 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQRect\fP & rect)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP the \fBQRect\fP to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 449 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQRegion\fP & region)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIregion\fP the \fBQRegion\fP to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 453 of file kdebug.cpp.
.PP
References QMemArray::size().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBKURL\fP & url)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIurl\fP the url to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 463 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQStringList\fP & list)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIlist\fP the stringlist to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 467 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQColor\fP & color)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIcolor\fP the color to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 474 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQPen\fP & pen)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIpen\fP the pen to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 481 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQBrush\fP & brush)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIbrush\fP the brush to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP

.PP
Definition at line 505 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQVariant\fP & variant)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIvariant\fP the variant to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 526 of file kdebug.cpp.
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (const \fBQByteArray\fP & data)"
.PP
Prints the given value. 
.PP
\fBParameters:\fP
.RS 4
\fIdata\fP the byte array to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 537 of file kdebug.cpp.
.PP
References QString::number(), and QString::rightJustify().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
