|
|
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: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $. |