• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

Public Member Functions
kdbgstream Class Reference
Debug message generators

#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)
kdbgstream & operator<< (bool i)
kdbgstream & operator<< (short i)
kdbgstream & operator<< (unsigned short i)
kdbgstream & operator<< (char ch)
kdbgstream & operator<< (unsigned char ch)
kdbgstream & operator<< (int i)
kdbgstream & operator<< (unsigned int i)
kdbgstream & operator<< (long i)
kdbgstream & operator<< (unsigned long i)
kdbgstream & operator<< (TQ_LLONG i)
kdbgstream & operator<< (TQ_ULLONG i)
void flush ()
kdbgstream & operator<< (TQChar ch)
kdbgstream & operator<< (const TQString &string)
kdbgstream & operator<< (const char *string)
kdbgstream & operator<< (const TQCString &string)
kdbgstream & operator<< (const void *p)
kdbgstream & operator<< (KDBGFUNC f)
kdbgstream & operator<< (double d)
kdbgstream & form (const char *format,...)
kdbgstream & operator<< (const TQWidget *widget)
kdbgstream & operator<< (TQWidget *widget)
kdbgstream & operator<< (const TQDateTime &dateTime)
kdbgstream & operator<< (const TQDate &date)
kdbgstream & operator<< (const TQTime &time)
kdbgstream & operator<< (const TQPoint &point)
kdbgstream & operator<< (const TQSize &size)
kdbgstream & operator<< (const TQRect &rect)
kdbgstream & operator<< (const TQRegion &region)
kdbgstream & operator<< (const KURL &url)
kdbgstream & operator<< (const TQStringList &list)
kdbgstream & operator<< (const TQColor &color)
kdbgstream & operator<< (const TQPen &pen)
kdbgstream & operator<< (const TQBrush &brush)
kdbgstream & operator<< (const TQVariant &variant)
kdbgstream & operator<< (const TQByteArray &data)
template<class T >
kdbgstream & operator<< (const TQValueList< 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 375 of file kdebug.cpp.


Member Function Documentation

void kdbgstream::flush ( )

Flushes the output.

Definition at line 381 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 388 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.

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<< ( 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<< ( char  ch)

Prints the given value.

Parameters:
chthe char to print
Returns:
this stream

Definition at line 410 of file kdebug.cpp.

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<< ( 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<< ( 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<< ( 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 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<< ( TQ_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<< ( TQ_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<< ( TQChar  ch)

Prints the given value.

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

Definition at line 422 of file kdebug.cpp.

kdbgstream& kdbgstream::operator<< ( const TQString &  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<< ( 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 TQCString &  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 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<< ( 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<< ( 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<< ( const TQWidget *  widget)

Operator to print out basic information about a TQWidget.

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

Parameters:
widgetthe widget to print
Returns:
this stream

Definition at line 439 of file kdebug.cpp.

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

Prints the given value.

Parameters:
dateTimethe datetime to print
Returns:
this stream

Definition at line 479 of file kdebug.cpp.

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

Prints the given value.

Parameters:
datethe date to print
Returns:
this stream

Definition at line 483 of file kdebug.cpp.

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

Prints the given value.

Parameters:
timethe time to print
Returns:
this stream

Definition at line 488 of file kdebug.cpp.

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

Prints the given value.

Parameters:
pointthe point to print
Returns:
this stream

Definition at line 492 of file kdebug.cpp.

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

Prints the given value.

Parameters:
sizethe TQSize to print
Returns:
this stream

Definition at line 496 of file kdebug.cpp.

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

Prints the given value.

Parameters:
rectthe TQRect to print
Returns:
this stream

Definition at line 500 of file kdebug.cpp.

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

Prints the given value.

Parameters:
regionthe TQRegion to print
Returns:
this stream

Definition at line 504 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 514 of file kdebug.cpp.

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

Prints the given value.

Parameters:
listthe stringlist to print
Returns:
this stream

Definition at line 518 of file kdebug.cpp.

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

Prints the given value.

Parameters:
colorthe color to print
Returns:
this stream

Definition at line 525 of file kdebug.cpp.

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

Prints the given value.

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

Definition at line 532 of file kdebug.cpp.

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

Prints the given value.

Parameters:
brushthe brush to print
Returns:
this stream

Definition at line 556 of file kdebug.cpp.

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

Prints the given value.

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

Definition at line 577 of file kdebug.cpp.

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

Prints the given value.

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

Definition at line 588 of file kdebug.cpp.


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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |