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

tdecore

Public Member Functions | List of all members
kdbgstream Class Reference
Debug message generators

#include <kdebug.h>

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;
endl
kndbgstream & endl(kndbgstream &s)
Does nothing.
Definition: kdebug.h:583
See also
kndbgstream

Definition at line 80 of file kdebug.h.

Constructor & Destructor Documentation

◆ kdbgstream() [1/4]

kdbgstream::kdbgstream ( unsigned int  _area,
unsigned int  _level,
bool  _print = true 
)
inline

Definition at line 85 of file kdebug.h.

◆ kdbgstream() [2/4]

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

Definition at line 87 of file kdebug.h.

◆ kdbgstream() [3/4]

kdbgstream::kdbgstream ( kdbgstream &  str)

Copy constructor.

Definition at line 381 of file kdebug.cpp.

◆ kdbgstream() [4/4]

kdbgstream::kdbgstream ( const kdbgstream &  str)
inline

Definition at line 91 of file kdebug.h.

◆ ~kdbgstream()

kdbgstream::~kdbgstream ( )

Definition at line 405 of file kdebug.cpp.

Member Function Documentation

◆ flush()

void kdbgstream::flush ( )

Flushes the output.

Definition at line 387 of file kdebug.cpp.

◆ form()

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 394 of file kdebug.cpp.

◆ operator<<() [1/34]

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.

◆ operator<<() [2/34]

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

Prints the given value.

Parameters
chthe char to print
Returns
this stream

Definition at line 416 of file kdebug.cpp.

◆ operator<<() [3/34]

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.

◆ operator<<() [4/34]

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

Prints the given value.

Parameters
urlthe url to print
Returns
this stream

Definition at line 520 of file kdebug.cpp.

◆ operator<<() [5/34]

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

Prints the given value.

Parameters
brushthe brush to print
Returns
this stream

Definition at line 562 of file kdebug.cpp.

◆ operator<<() [6/34]

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 594 of file kdebug.cpp.

◆ operator<<() [7/34]

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

Prints the given value.

Parameters
colorthe color to print
Returns
this stream

Definition at line 531 of file kdebug.cpp.

◆ operator<<() [8/34]

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.

◆ operator<<() [9/34]

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

Prints the given value.

Parameters
datethe date to print
Returns
this stream

Definition at line 489 of file kdebug.cpp.

◆ operator<<() [10/34]

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

Prints the given value.

Parameters
dateTimethe datetime to print
Returns
this stream

Definition at line 485 of file kdebug.cpp.

◆ operator<<() [11/34]

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

Prints the given value.

Parameters
penthe pen to print
Returns
this stream
Since
3.2

Definition at line 538 of file kdebug.cpp.

◆ operator<<() [12/34]

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

Prints the given value.

Parameters
pointthe point to print
Returns
this stream

Definition at line 498 of file kdebug.cpp.

◆ operator<<() [13/34]

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

Prints the given value.

Parameters
rectthe TQRect to print
Returns
this stream

Definition at line 506 of file kdebug.cpp.

◆ operator<<() [14/34]

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

Prints the given value.

Parameters
regionthe TQRegion to print
Returns
this stream

Definition at line 510 of file kdebug.cpp.

◆ operator<<() [15/34]

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

Prints the given value.

Parameters
sizethe TQSize to print
Returns
this stream

Definition at line 502 of file kdebug.cpp.

◆ operator<<() [16/34]

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.

◆ operator<<() [17/34]

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

Prints the given value.

Parameters
listthe stringlist to print
Returns
this stream

Definition at line 524 of file kdebug.cpp.

◆ operator<<() [18/34]

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

Prints the given value.

Parameters
timethe time to print
Returns
this stream

Definition at line 494 of file kdebug.cpp.

◆ operator<<() [19/34]

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

Prints the given value.

Parameters
variantthe variant to print
Returns
this stream
Since
3.3

Definition at line 583 of file kdebug.cpp.

◆ operator<<() [20/34]

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 445 of file kdebug.cpp.

◆ operator<<() [21/34]

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.

◆ operator<<() [22/34]

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.

◆ operator<<() [23/34]

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.

◆ operator<<() [24/34]

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.

◆ operator<<() [25/34]

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.

◆ operator<<() [26/34]

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.

◆ operator<<() [27/34]

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.

◆ operator<<() [28/34]

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.

◆ operator<<() [29/34]

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

Prints the given value.

Parameters
chthe char to print
Returns
this stream
Since
3.3

Definition at line 428 of file kdebug.cpp.

◆ operator<<() [30/34]

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

Definition at line 440 of file kdebug.cpp.

◆ operator<<() [31/34]

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.

◆ operator<<() [32/34]

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.

◆ operator<<() [33/34]

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.

◆ operator<<() [34/34]

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.


The documentation for this class was generated from the following files:
  • kdebug.h
  • kdebug.cpp

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.