class kdbgstream

# 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

- 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 ()
- kdbgstream & operator<< (bool i)
- kdbgstream & operator<< (short i)
- kdbgstream & operator<< (unsigned short i)
- kdbgstream & operator<< (char i)
- kdbgstream & operator<< (unsigned char i)
- kdbgstream & operator<< (int i)
- kdbgstream & operator<< (unsigned int i)
- kdbgstream & operator<< (long i)
- kdbgstream & operator<< (unsigned long i)
- void flush ()
- kdbgstream & operator<< (const QString& string)
- kdbgstream & operator<< (const char *string)
- kdbgstream & operator<< (const QCString& string)
- kdbgstream& operator<< (const void * p)
- kdbgstream& operator<< (KDBGFUNC f)
- kdbgstream& operator<< (double d)
- kdbgstream & form (const char *format, ...)
- kdbgstream& operator << (QWidget* widget)

## 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

kdbgstream & operator<< (bool i) | ### operator<<

Prints the given value.

Parameters:

i | the boolean to print (as "true" or "false")

Returns: this stream

kdbgstream & operator<< (short i) | ### operator<<

Prints the given value.

Parameters:

i | the short to print

Returns: this stream

kdbgstream & operator<< (unsigned short i) | ### operator<<

Prints the given value.

Parameters:

i | the unsigned short to print

Returns: this stream

kdbgstream & operator<< (char i) | ### operator<<

Prints the given value.

Parameters:

i | the char to print

Returns: this stream

kdbgstream & operator<< (unsigned char i) | ### operator<<

Prints the given value.

Parameters:

i | the unsigned char to print

Returns: this stream

kdbgstream & operator<< (int i) | ### operator<<

Prints the given value.

Parameters:

i | the int to print

Returns: this stream

kdbgstream & operator<< (unsigned int i) | ### operator<<

Prints the given value.

Parameters:

i | the unsigned int to print

Returns: this stream

kdbgstream & operator<< (long i) | ### operator<<

Prints the given value.

Parameters:

i | the long to print

Returns: this stream

kdbgstream & operator<< (unsigned long i) | ### operator<<

Prints the given value.

Parameters:

i | the unsigned long to print

Returns: this stream

void flush () | ### flush

Flushes the output.

kdbgstream & operator<< (const QString& string) | ### operator<<

Prints the given value.

Parameters:

string | the string to print

Returns: this stream

kdbgstream & operator<< (const char *string) | ### operator<<

Prints the given value.

Parameters:

string | the string to print

Returns: this stream

kdbgstream & operator<< (const QCString& string) | ### operator<<

Prints the given value.

Parameters:

string | the string to print

Returns: this stream

kdbgstream& operator<< (const void * p) | ### operator<<

Prints the given value.

Parameters:

p | a pointer to print (in number form)

Returns: this stream

kdbgstream& operator<< (KDBGFUNC f) | ### operator<<

Invokes the given function.

Parameters:

f | the function to invoke

Returns: the return value of `f`

kdbgstream& operator<< (double d) | ### operator<<

Prints the given value.

Parameters:

d | the double to print

Returns: this stream

kdbgstream & form (const char *format, ...) | ### form

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

Parameters:

format | the 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:

widget | the widget to print

Returns: this stream

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.