kdbgstream Class Reference
kdbgstream is a text stream that allows you to print debug messages. More...
#include <kdebug.h>
Collaboration diagram for kdbgstream:

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) | |
| Copy constructor. | |
| kdbgstream (const kdbgstream &str) | |
| kdbgstream & | operator<< (bool i) |
| Prints the given value. | |
| kdbgstream & | operator<< (short i) |
| Prints the given value. | |
| kdbgstream & | operator<< (unsigned short i) |
| Prints the given value. | |
| kdbgstream & | operator<< (char i) |
| Prints the given value. | |
| kdbgstream & | operator<< (unsigned char i) |
| Prints the given value. | |
| kdbgstream & | operator<< (int i) |
| Prints the given value. | |
| kdbgstream & | operator<< (unsigned int i) |
| Prints the given value. | |
| kdbgstream & | operator<< (long i) |
| Prints the given value. | |
| kdbgstream & | operator<< (unsigned long i) |
| Prints the given value. | |
| void | flush () |
| Flushes the output. | |
| kdbgstream & | operator<< (const QString &string) |
| Prints the given value. | |
| kdbgstream & | operator<< (const char *string) |
| Prints the given value. | |
| kdbgstream & | operator<< (const QCString &string) |
| Prints the given value. | |
| kdbgstream & | operator<< (const void *p) |
| Prints the given value. | |
| kdbgstream & | operator<< (KDBGFUNC f) |
| Invokes the given function. | |
| kdbgstream & | operator<< (double d) |
| Prints the given value. | |
| kdbgstream & | form (const char *format,...) |
Prints the string format which can contain printf-style formatted values. | |
| kdbgstream & | operator<< (QWidget *widget) |
| Operator to print out basic information about a QWidget. | |
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 54 of file kdebug.h.
Constructor & Destructor Documentation
|
|
Copy constructor.
|
Member Function Documentation
|
|
Prints the given value.
Definition at line 74 of file kdebug.h. References QString::fromLatin1(). |
|
|
Prints the given value.
Definition at line 84 of file kdebug.h. References QString::setNum(). |
|
|
Prints the given value.
Definition at line 94 of file kdebug.h. References QString::setNum(). |
|
|
Prints the given value.
Definition at line 349 of file kdebug.cpp. References flush(), and QString::number(). |
|
|
Prints the given value.
|
|
|
Prints the given value.
Definition at line 118 of file kdebug.h. References QString::setNum(). |
|
|
Prints the given value.
Definition at line 128 of file kdebug.h. References QString::setNum(). |
|
|
Prints the given value.
Definition at line 138 of file kdebug.h. References QString::setNum(). |
|
|
Prints the given value.
Definition at line 148 of file kdebug.h. References QString::setNum(). |
|
|
Flushes the output.
Definition at line 323 of file kdebug.cpp. References QString::isEmpty(), and QString::local8Bit(). Referenced by operator<<(). |
|
|
Prints the given value.
Definition at line 162 of file kdebug.h. References QString::at(), flush(), and QString::length(). |
|
|
Prints the given value.
Definition at line 174 of file kdebug.h. References QString::at(), flush(), QString::fromUtf8(), and QString::length(). |
|
|
Prints the given value.
|
|
|
Prints the given value.
Definition at line 195 of file kdebug.h. References form(). |
|
|
Invokes the given function.
|
|
|
Prints the given value.
Definition at line 213 of file kdebug.h. References QString::setNum(). |
|
||||||||||||
|
Prints the string
Definition at line 330 of file kdebug.cpp. Referenced by operator<<(). |
|
|
Operator to print out basic information about a QWidget. Output of class names only works if the class is moc'ified.
Definition at line 361 of file kdebug.cpp. References QString::at(), flush(), QString::length(), and QString::setNum(). |
The documentation for this class was generated from the following files:
