.TH "kdbgstream" 3 "28 Jan 2004" "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
.RI "\fICopy constructor. \fP"
.ti -1c
.RI "\fBkdbgstream\fP (const  \fBkdbgstream\fP &str)"
.br
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (bool i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (short i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned short i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (char i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned char i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (int i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned int i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (long i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (unsigned long i)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "void \fBflush\fP ()"
.br
.RI "\fIFlushes the output. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const  \fBQString\fP &string)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const  char *string)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const  \fBQCString\fP &string)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (const  void *p)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (KDBGFUNC f)"
.br
.RI "\fIInvokes the given function. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (double d)"
.br
.RI "\fIPrints the given value. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBform\fP (const  char *format,...)"
.br
.RI "\fIPrints the string \fCformat\fP which can contain printf-style formatted values. \fP"
.ti -1c
.RI "\fBkdbgstream\fP & \fBoperator<<\fP (\fBQWidget\fP *widget)"
.br
.RI "\fIOperator to print out basic information about a \fBQWidget\fP. \fP"
.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 \fBkdDebug\fP() \fBkdWarning\fP(), \fBkdError\fP() or \fBkdFatal\fP to obtain one.
.PP
Example: 
.PP
.nf

    int i = 5;
    \fBkdDebug()\fP << 'The value of i is ' << i << endl;
 
.PP
 
.PP
\fBSee also:\fP
.RS 4
\fBkndbgstream\fP 
.RE
.PP

.PP
Definition at line 54 of file kdebug.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "kdbgstream::kdbgstream (\fBkdbgstream\fP & str)\fC [inline]\fP"
.PP
Copy constructor. Definition at line 64 of file kdebug.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (bool i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the boolean to print (as 'true' or 'false') 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 74 of file kdebug.h.
.PP
References QString::fromLatin1().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (short i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the short to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 84 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned short i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the unsigned short to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 94 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (char i)"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the char to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 349 of file kdebug.cpp.
.PP
References flush(), and QString::number().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned char i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the unsigned char to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 110 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (int i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the int to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 118 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned int i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the unsigned int to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 128 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (long i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 138 of file kdebug.h.
.PP
References QString::setNum().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (unsigned long i)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIi\fP the unsigned long to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 148 of file kdebug.h.
.PP
References QString::setNum().
.SS "void kdbgstream::flush ()"
.PP
Flushes the output. Definition at line 323 of file kdebug.cpp.
.PP
References QString::isEmpty(), and QString::local8Bit().
.PP
Referenced by operator<<().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const \fBQString\fP & string)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 162 of file kdebug.h.
.PP
References QString::at(), flush(), and QString::length().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const char * string)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 174 of file kdebug.h.
.PP
References QString::at(), flush(), QString::fromUtf8(), and QString::length().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const \fBQCString\fP & string)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIstring\fP the string to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 186 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (const void * p)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fIp\fP a pointer to print (in number form) 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 195 of file kdebug.h.
.PP
References form().
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (KDBGFUNC f)\fC [inline]\fP"
.PP
Invokes the given function. \fBParameters:\fP
.RS 4
\fIf\fP the function to invoke 
.RE
.PP
\fBReturns:\fP
.RS 4
the return value of \fCf\fP 
.RE
.PP
Definition at line 204 of file kdebug.h.
.SS "\fBkdbgstream\fP& kdbgstream::operator<< (double d)\fC [inline]\fP"
.PP
Prints the given value. \fBParameters:\fP
.RS 4
\fId\fP the double to print 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 213 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. \fBParameters:\fP
.RS 4
\fIformat\fP the printf-style format 
.RE
.PP
\fBReturns:\fP
.RS 4
this stream 
.RE
.PP
Definition at line 330 of file kdebug.cpp.
.PP
Referenced by operator<<().
.SS "\fBkdbgstream\fP & kdbgstream::operator<< (\fBQWidget\fP * widget)"
.PP
Operator to print out basic information about a \fBQWidget\fP. 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
Definition at line 361 of file kdebug.cpp.
.PP
References QString::at(), flush(), QString::length(), and QString::setNum().

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