kdbgstream Class Reference
[Debug message generators]

kdbgstream is a text stream that allows you to print debug messages. More...

#include <kdebug.h>

List of all members.

Public Member Functions

 kdbgstream (unsigned int _area, unsigned int _level, bool _print=true)
 kdbgstream (const char *initialString, unsigned int _area, unsigned int _level, bool _print=true)
 kdbgstream (kdbgstream &str)
 kdbgstream (const kdbgstream &str)
kdbgstreamoperator<< (bool i)
kdbgstreamoperator<< (short i)
kdbgstreamoperator<< (unsigned short i)
kdbgstreamoperator<< (char ch)
kdbgstreamoperator<< (unsigned char ch)
kdbgstreamoperator<< (int i)
kdbgstreamoperator<< (unsigned int i)
kdbgstreamoperator<< (long i)
kdbgstreamoperator<< (unsigned long i)
kdbgstreamoperator<< (Q_LLONG i)
kdbgstreamoperator<< (Q_ULLONG i)
void flush ()
kdbgstreamoperator<< (QChar ch)
kdbgstreamoperator<< (const QString &string)
kdbgstreamoperator<< (const char *string)
kdbgstreamoperator<< (const QCString &string)
kdbgstreamoperator<< (const void *p)
kdbgstreamoperator<< (KDBGFUNC f)
kdbgstreamoperator<< (double d)
kdbgstreamform (const char *format,...)
kdbgstreamoperator<< (const QWidget *widget)
kdbgstreamoperator<< (QWidget *widget)
kdbgstreamoperator<< (const QDateTime &dateTime)
kdbgstreamoperator<< (const QDate &date)
kdbgstreamoperator<< (const QTime &time)
kdbgstreamoperator<< (const QPoint &point)
kdbgstreamoperator<< (const QSize &size)
kdbgstreamoperator<< (const QRect &rect)
kdbgstreamoperator<< (const QRegion &region)
kdbgstreamoperator<< (const KURL &url)
kdbgstreamoperator<< (const QStringList &list)
kdbgstreamoperator<< (const QColor &color)
kdbgstreamoperator<< (const QPen &pen)
kdbgstreamoperator<< (const QBrush &brush)
kdbgstreamoperator<< (const QVariant &variant)
kdbgstreamoperator<< (const QByteArray &data)
template<class T >
kdbgstreamoperator<< (const QValueList< T > &list)

Detailed Description

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.

Example:

    int i = 5;
    kdDebug() << "The value of i is " << i << endl;
See also:
kndbgstream

Definition at line 80 of file kdebug.h.


Constructor & Destructor Documentation

kdbgstream::kdbgstream ( kdbgstream str )

Copy constructor.

Definition at line 327 of file kdebug.cpp.


Member Function Documentation

void kdbgstream::flush (  )

Flushes the output.

Definition at line 333 of file kdebug.cpp.

kdbgstream & kdbgstream::form ( const char *  format,
  ... 
)

Prints the string format which can contain printf-style formatted values.

Parameters:
formatthe printf-style format
Returns:
this stream

Definition at line 340 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QByteArray data )

Prints the given value.

Parameters:
datathe byte array to print
Returns:
this stream
Since:
3.3

Definition at line 537 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QVariant variant )

Prints the given value.

Parameters:
variantthe variant to print
Returns:
this stream
Since:
3.3

Definition at line 526 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QBrush brush )

Prints the given value.

Parameters:
brushthe brush to print
Returns:
this stream

Definition at line 505 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QPen pen )

Prints the given value.

Parameters:
penthe pen to print
Returns:
this stream
Since:
3.2

Definition at line 481 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QColor color )

Prints the given value.

Parameters:
colorthe color to print
Returns:
this stream

Definition at line 474 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QStringList list )

Prints the given value.

Parameters:
listthe stringlist to print
Returns:
this stream

Definition at line 467 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const KURL url )

Prints the given value.

Parameters:
urlthe url to print
Returns:
this stream

Definition at line 463 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QRegion region )

Prints the given value.

Parameters:
regionthe QRegion to print
Returns:
this stream

Definition at line 453 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QRect rect )

Prints the given value.

Parameters:
rectthe QRect to print
Returns:
this stream

Definition at line 449 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QSize size )

Prints the given value.

Parameters:
sizethe QSize to print
Returns:
this stream

Definition at line 445 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QPoint point )

Prints the given value.

Parameters:
pointthe point to print
Returns:
this stream

Definition at line 441 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QTime time )

Prints the given value.

Parameters:
timethe time to print
Returns:
this stream

Definition at line 437 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QDate date )

Prints the given value.

Parameters:
datethe date to print
Returns:
this stream

Definition at line 432 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QDateTime dateTime )

Prints the given value.

Parameters:
dateTimethe datetime to print
Returns:
this stream

Definition at line 428 of file kdebug.cpp.

kdbgstream & kdbgstream::operator<< ( const QWidget widget )

Operator to print out basic information about a QWidget.

Output of class names only works if the class is moc'ified.

Parameters:
widgetthe widget to print
Returns:
this stream

Definition at line 388 of file kdebug.cpp.

kdbgstream& kdbgstream::operator<< ( Q_LLONG  i ) [inline]

Prints the given value.

Parameters:
ithe long long to print
Returns:
this stream

Definition at line 183 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( double  d ) [inline]

Prints the given value.

Parameters:
dthe double to print
Returns:
this stream

Definition at line 267 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( KDBGFUNC  f ) [inline]

Invokes the given function.

Parameters:
fthe function to invoke
Returns:
the return value of f

Definition at line 258 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( const void *  p ) [inline]

Prints the given value.

Parameters:
pa pointer to print (in number form)
Returns:
this stream

Definition at line 249 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( const QCString string ) [inline]

Prints the given value.

Parameters:
stringthe string to print
Returns:
this stream

Definition at line 240 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( const char *  string ) [inline]

Prints the given value.

Parameters:
stringthe string to print
Returns:
this stream

Definition at line 228 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( const QString string ) [inline]

Prints the given value.

Parameters:
stringthe string to print
Returns:
this stream

Definition at line 216 of file kdebug.h.

kdbgstream & kdbgstream::operator<< ( QChar  ch )

Prints the given value.

Parameters:
chthe char to print
Returns:
this stream
Since:
3.3

Definition at line 371 of file kdebug.cpp.

kdbgstream& kdbgstream::operator<< ( int  i ) [inline]

Prints the given value.

Parameters:
ithe int to print
Returns:
this stream

Definition at line 143 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( Q_ULLONG  i ) [inline]

Prints the given value.

Parameters:
ithe unsigned long long to print
Returns:
this stream

Definition at line 193 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( unsigned char  ch ) [inline]

Prints the given value.

Parameters:
chthe unsigned char to print
Returns:
this stream

Definition at line 135 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( unsigned long  i ) [inline]

Prints the given value.

Parameters:
ithe unsigned long to print
Returns:
this stream

Definition at line 173 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( long  i ) [inline]

Prints the given value.

Parameters:
ithe long to print
Returns:
this stream

Definition at line 163 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( unsigned int  i ) [inline]

Prints the given value.

Parameters:
ithe unsigned int to print
Returns:
this stream

Definition at line 153 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( unsigned short  i ) [inline]

Prints the given value.

Parameters:
ithe unsigned short to print
Returns:
this stream

Definition at line 119 of file kdebug.h.

kdbgstream& kdbgstream::operator<< ( short  i ) [inline]

Prints the given value.

Parameters:
ithe short to print
Returns:
this stream

Definition at line 109 of file kdebug.h.

kdbgstream & kdbgstream::operator<< ( char  ch )

Prints the given value.

Parameters:
chthe char to print
Returns:
this stream

Definition at line 359 of file kdebug.cpp.

kdbgstream& kdbgstream::operator<< ( bool  i ) [inline]

Prints the given value.

Parameters:
ithe boolean to print (as "true" or "false")
Returns:
this stream

Definition at line 99 of file kdebug.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys