\section{kdbgstream Class Reference}
\label{classkdbgstream}\index{kdbgstream@{kdbgstream}}
kdbgstream is a text stream that allows you to print debug messages.  


{\tt \#include $<$kdebug.h$>$}

Collaboration diagram for kdbgstream:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=56pt]{classkdbgstream__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf kdbgstream} (unsigned int \_\-area, unsigned int \_\-level, bool \_\-print=true)\label{classkdbgstream_a0}

\item 
{\bf kdbgstream} (const  char $\ast$initial\-String, unsigned int \_\-area, unsigned int \_\-level, bool \_\-print=true)\label{classkdbgstream_a1}

\item 
{\bf kdbgstream} ({\bf kdbgstream} \&str)
\begin{CompactList}\small\item\em Copy constructor. \item\end{CompactList}\item 
{\bf kdbgstream} (const  {\bf kdbgstream} \&str)\label{classkdbgstream_a3}

\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (bool i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (short i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (unsigned short i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (char i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (unsigned char i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (int i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (unsigned int i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (long i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (unsigned long i)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
void {\bf flush} ()
\begin{CompactList}\small\item\em Flushes the output. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (const  {\bf QString} \&string)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (const  char $\ast$string)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (const  {\bf QCString} \&string)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (const  void $\ast$p)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (KDBGFUNC f)
\begin{CompactList}\small\item\em Invokes the given function. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} (double d)
\begin{CompactList}\small\item\em Prints the given value. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf form} (const  char $\ast$format,...)
\begin{CompactList}\small\item\em Prints the string {\tt format} which can contain printf-style formatted values. \item\end{CompactList}\item 
{\bf kdbgstream} \& {\bf operator$<$$<$} ({\bf QWidget} $\ast$widget)
\begin{CompactList}\small\item\em Operator to print out basic information about a {\bf QWidget}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
kdbgstream is a text stream that allows you to print debug messages. 

Using the overloaded \char`\"{}$<$$<$\char`\"{} operator you can send messages. Usually you do not create the kdbgstream yourself, but use kd\-Debug() kd\-Warning(), kd\-Error() or kd\-Fatal to obtain one.

Example: \small\begin{alltt}
    int i = 5;
    {\bf kdDebug()}{\rm (p.\,\pageref{kdebug_8h_a12})} $<$$<$ "The value of i is " $<$$<$ i $<$$<$ endl;
 \end{alltt}\normalsize 
 \begin{Desc}
\item[See also:]{\bf kndbgstream}{\rm (p.\,\pageref{classkndbgstream})} \end{Desc}




Definition at line 54 of file kdebug.h.

\subsection{Constructor \& Destructor Documentation}
\index{kdbgstream@{kdbgstream}!kdbgstream@{kdbgstream}}
\index{kdbgstream@{kdbgstream}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}kdbgstream::kdbgstream ({\bf kdbgstream} \& {\em str})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a2}


Copy constructor. 



Definition at line 64 of file kdebug.h.

\subsection{Member Function Documentation}
\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (bool {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a5}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the boolean to print (as \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{}) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 74 of file kdebug.h.

References QString::from\-Latin1().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (short {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a6}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the short to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 84 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (unsigned short {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a7}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the unsigned short to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 94 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream} \& kdbgstream::operator$<$$<$ (char {\em i})}\label{classkdbgstream_a8}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the char to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 349 of file kdebug.cpp.

References flush(), and QString::number().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (unsigned char {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a9}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the unsigned char to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 110 of file kdebug.h.\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (int {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a10}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the int to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 118 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (unsigned int {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a11}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the unsigned int to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 128 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (long {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a12}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the long to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 138 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (unsigned long {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a13}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]the unsigned long to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 148 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!flush@{flush}}
\index{flush@{flush}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void kdbgstream::flush ()}\label{classkdbgstream_a14}


Flushes the output. 



Definition at line 323 of file kdebug.cpp.

References QString::is\-Empty(), and QString::local8Bit().

Referenced by operator$<$$<$().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (const {\bf QString} \& {\em string})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a15}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]the string to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 162 of file kdebug.h.

References QString::at(), flush(), and QString::length().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (const char $\ast$ {\em string})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a16}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]the string to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 174 of file kdebug.h.

References QString::at(), flush(), QString::from\-Utf8(), and QString::length().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (const {\bf QCString} \& {\em string})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a17}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]the string to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 186 of file kdebug.h.\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (const void $\ast$ {\em p})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a18}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p}]a pointer to print (in number form) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 195 of file kdebug.h.

References form().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (KDBGFUNC {\em f})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a19}


Invokes the given function. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em f}]the function to invoke \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the return value of {\tt f} \end{Desc}


Definition at line 204 of file kdebug.h.\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream}\& kdbgstream::operator$<$$<$ (double {\em d})\hspace{0.3cm}{\tt  [inline]}}\label{classkdbgstream_a20}


Prints the given value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em d}]the double to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 213 of file kdebug.h.

References QString::set\-Num().\index{kdbgstream@{kdbgstream}!form@{form}}
\index{form@{form}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream} \& kdbgstream::form (const char $\ast$ {\em format}, ...)}\label{classkdbgstream_a21}


Prints the string {\tt format} which can contain printf-style formatted values. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]the printf-style format \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 330 of file kdebug.cpp.

Referenced by operator$<$$<$().\index{kdbgstream@{kdbgstream}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!kdbgstream@{kdbgstream}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf kdbgstream} \& kdbgstream::operator$<$$<$ ({\bf QWidget} $\ast$ {\em widget})}\label{classkdbgstream_a22}


Operator to print out basic information about a {\bf QWidget}. 

Output of class names only works if the class is moc'ified. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em widget}]the widget to print \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]this stream \end{Desc}


Definition at line 361 of file kdebug.cpp.

References QString::at(), flush(), QString::length(), and QString::set\-Num().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kdebug.h\item 
kdebug.cpp\end{CompactItemize}
