• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

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

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

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 ( unsigned int  _area,
unsigned int  _level,
bool  _print = true 
) [inline]

For internal use only.

Definition at line 85 of file kdebug.h.

kdbgstream::kdbgstream ( const char *  initialString,
unsigned int  _area,
unsigned int  _level,
bool  _print = true 
) [inline]

Definition at line 87 of file kdebug.h.

kdbgstream::kdbgstream ( kdbgstream &  str  ) 

Copy constructor.

Definition at line 335 of file kdebug.cpp.

kdbgstream::kdbgstream ( const kdbgstream &  str  )  [inline]

Definition at line 91 of file kdebug.h.

kdbgstream::~kdbgstream (  ) 

Definition at line 359 of file kdebug.cpp.


Member Function Documentation

void kdbgstream::flush (  ) 

Flushes the output.

Definition at line 341 of file kdebug.cpp.

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

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

Parameters:
format the printf-style format
Returns:
this stream

Definition at line 348 of file kdebug.cpp.

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

Prints the given value.

Parameters:
data the byte array to print
Returns:
this stream
Since:
3.3

Definition at line 545 of file kdebug.cpp.

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

Prints the given value.

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

Definition at line 534 of file kdebug.cpp.

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

Prints the given value.

Parameters:
brush the brush to print
Returns:
this stream

Definition at line 513 of file kdebug.cpp.

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

Prints the given value.

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

Definition at line 489 of file kdebug.cpp.

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

Prints the given value.

Parameters:
color the color to print
Returns:
this stream

Definition at line 482 of file kdebug.cpp.

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

Prints the given value.

Parameters:
list the stringlist to print
Returns:
this stream

Definition at line 475 of file kdebug.cpp.

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

Prints the given value.

Parameters:
url the url to print
Returns:
this stream

Definition at line 471 of file kdebug.cpp.

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

Prints the given value.

Parameters:
region the QRegion to print
Returns:
this stream

Definition at line 461 of file kdebug.cpp.

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

Prints the given value.

Parameters:
rect the QRect to print
Returns:
this stream

Definition at line 457 of file kdebug.cpp.

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

Prints the given value.

Parameters:
size the QSize to print
Returns:
this stream

Definition at line 453 of file kdebug.cpp.

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

Prints the given value.

Parameters:
point the point to print
Returns:
this stream

Definition at line 449 of file kdebug.cpp.

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

Prints the given value.

Parameters:
time the time to print
Returns:
this stream

Definition at line 445 of file kdebug.cpp.

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

Prints the given value.

Parameters:
date the date to print
Returns:
this stream

Definition at line 440 of file kdebug.cpp.

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

Prints the given value.

Parameters:
dateTime the datetime to print
Returns:
this stream

Definition at line 436 of file kdebug.cpp.

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

Definition at line 391 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:
widget the widget to print
Returns:
this stream

Definition at line 396 of file kdebug.cpp.

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

Prints the given value.

Parameters:
d the 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:
f the 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:
p a 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:
string the 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:
string the 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:
string the string to print
Returns:
this stream

Definition at line 216 of file kdebug.h.

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

Prints the given value.

Parameters:
ch the char to print
Returns:
this stream
Since:
3.3

Definition at line 379 of file kdebug.cpp.

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

Prints the given value.

Parameters:
i the unsigned long long to print
Returns:
this stream

Definition at line 193 of file kdebug.h.

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

Prints the given value.

Parameters:
i the long long to print
Returns:
this stream

Definition at line 183 of file kdebug.h.

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

Prints the given value.

Parameters:
i the 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:
i the 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:
i the unsigned int to print
Returns:
this stream

Definition at line 153 of file kdebug.h.

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

Prints the given value.

Parameters:
i the int to print
Returns:
this stream

Definition at line 143 of file kdebug.h.

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

Prints the given value.

Parameters:
ch the unsigned char to print
Returns:
this stream

Definition at line 135 of file kdebug.h.

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

Prints the given value.

Parameters:
ch the char to print
Returns:
this stream

Definition at line 367 of file kdebug.cpp.

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

Prints the given value.

Parameters:
i the 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:
i the short to print
Returns:
this stream

Definition at line 109 of file kdebug.h.

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

Prints the given value.

Parameters:
i the 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:
  • kdebug.h
  • kdebug.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal