class kdbgstream

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

Definition#include <kdebug.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


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

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

kdbgstream

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

kdbgstream

 kdbgstream (kdbgstream &str)

kdbgstream

 kdbgstream (const kdbgstream &str)

kdbgstream

 ~kdbgstream ()

~kdbgstream

kdbgstreamoperator<< (bool i)

operator<<

Prints the given value.

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

Returns: this stream

kdbgstreamoperator<< (short i)

operator<<

Prints the given value.

Parameters:
ithe short to print

Returns: this stream

kdbgstreamoperator<< (unsigned short i)

operator<<

Prints the given value.

Parameters:
ithe unsigned short to print

Returns: this stream

kdbgstreamoperator<< (char i)

operator<<

Prints the given value.

Parameters:
ithe char to print

Returns: this stream

kdbgstreamoperator<< (unsigned char i)

operator<<

Prints the given value.

Parameters:
ithe unsigned char to print

Returns: this stream

kdbgstreamoperator<< (int i)

operator<<

Prints the given value.

Parameters:
ithe int to print

Returns: this stream

kdbgstreamoperator<< (unsigned int i)

operator<<

Prints the given value.

Parameters:
ithe unsigned int to print

Returns: this stream

kdbgstreamoperator<< (long i)

operator<<

Prints the given value.

Parameters:
ithe long to print

Returns: this stream

kdbgstreamoperator<< (unsigned long i)

operator<<

Prints the given value.

Parameters:
ithe unsigned long to print

Returns: this stream

void  flush ()

flush

Flushes the output.

kdbgstreamoperator<< (const QString& string)

operator<<

Prints the given value.

Parameters:
stringthe string to print

Returns: this stream

kdbgstreamoperator<< (const char *string)

operator<<

Prints the given value.

Parameters:
stringthe string to print

Returns: this stream

kdbgstreamoperator<< (const QCString& string)

operator<<

Prints the given value.

Parameters:
stringthe string to print

Returns: this stream

kdbgstream&  operator<< (const void * p)

operator<<

Prints the given value.

Parameters:
pa pointer to print (in number form)

Returns: this stream

kdbgstream&  operator<< (KDBGFUNC f)

operator<<

Invokes the given function.

Parameters:
fthe function to invoke

Returns: the return value of f

kdbgstream&  operator<< (double d)

operator<<

Prints the given value.

Parameters:
dthe double to print

Returns: this stream

kdbgstreamform (const char *format, ...)

form

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

Parameters:
formatthe printf-style format

Returns: this stream

kdbgstream&  operator << (QWidget* widget)

operator <<

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


Generated by: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.