Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Core::odbgstream Class Reference

#include </home/clem/local/src/opie/libopie2/opiecore/odebug.h>

Collaboration diagram for Opie::Core::odbgstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 odbgstream (unsigned int _area, unsigned int _level, bool _print=true)
 odbgstream (const char *initialString, unsigned int _area, unsigned int _level, bool _print=true)
 odbgstream (odbgstream &str)
 odbgstream (const odbgstream &str)
virtual ~odbgstream ()
odbgstreamoperator<< (bool i)
odbgstreamoperator<< (short i)
odbgstreamoperator<< (unsigned short i)
odbgstreamoperator<< (char i)
odbgstreamoperator<< (unsigned char i)
odbgstreamoperator<< (int i)
odbgstreamoperator<< (unsigned int i)
odbgstreamoperator<< (long i)
odbgstreamoperator<< (unsigned long i)
virtual void flush ()
odbgstreamoperator<< (const QString &string)
odbgstreamoperator<< (const char *string)
odbgstreamoperator<< (const QCString &string)
odbgstreamoperator<< (const void *p)
odbgstreamoperator<< (double d)
odbgstreamform (const char *format,...)
odbgstreamoperator<< (QWidget *widget)
odbgstreamoperator<< (const QDateTime &dateTime)
odbgstreamoperator<< (const QDate &date)
odbgstreamoperator<< (const QTime &time)
odbgstreamoperator<< (const QPoint &point)
odbgstreamoperator<< (const QSize &size)
odbgstreamoperator<< (const QRect &rect)
odbgstreamoperator<< (const QRegion &region)
odbgstreamoperator<< (const QStringList &list)
odbgstreamoperator<< (const QColor &color)
odbgstreamoperator<< (const QBrush &brush)

Private Attributes

QString output
unsigned int area
unsigned int level
bool print
odbgstreamprivate * d

Detailed Description

odbgstream 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 odbgstream yourself, but use odDebug() (odebug) odWarning() (owarn), odError() (oerr) or odFatal (ofatal) to obtain one.

Example:

    int i = 5;
    odebug << "The value of i is " << i << oendl;
 
See also:
odbgstream

Definition at line 96 of file odebug.h.


Constructor & Destructor Documentation

Opie::Core::odbgstream::odbgstream unsigned int  _area,
unsigned int  _level,
bool  _print = true
 

For internal use only.

Definition at line 288 of file odebug.cpp.

Opie::Core::odbgstream::odbgstream const char *  initialString,
unsigned int  _area,
unsigned int  _level,
bool  _print = true
 

Definition at line 294 of file odebug.cpp.

Opie::Core::odbgstream::odbgstream odbgstream str  ) 
 

Definition at line 300 of file odebug.cpp.

References output, and QString::truncate().

Opie::Core::odbgstream::odbgstream const odbgstream str  ) 
 

Definition at line 307 of file odebug.cpp.

Opie::Core::odbgstream::~odbgstream  )  [virtual]
 

Definition at line 450 of file odebug.cpp.

References QString::isEmpty(), and output.


Member Function Documentation

void Opie::Core::odbgstream::flush  )  [virtual]
 

Flushes the output.

Definition at line 421 of file odebug.cpp.

References area, Opie::Core::Internal::backEnd, Opie::Core::clean_up_routine(), QString::isEmpty(), level, QString::null, output, and print.

Referenced by Opie::Core::flush(), and operator<<().

odbgstream & Opie::Core::odbgstream::form const char *  format,
  ...
 

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

Parameters:
format the printf-style format
Returns:
this stream

Definition at line 438 of file odebug.cpp.

References buf.

Referenced by operator<<().

odbgstream & Opie::Core::odbgstream::operator<< const QBrush &  brush  ) 
 

Prints the given value.

Parameters:
brush the brush to print
Returns:
this stream

Definition at line 588 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QColor &  color  ) 
 

Prints the given value.

Parameters:
color the color to print
Returns:
this stream

Definition at line 578 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QStringList list  ) 
 

Prints the given value.

Parameters:
list the stringlist to print
Returns:
this stream

Definition at line 568 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QRegion &  region  ) 
 

Prints the given value.

Parameters:
region the QRegion to print
Returns:
this stream

Definition at line 557 of file odebug.cpp.

References i.

odbgstream & Opie::Core::odbgstream::operator<< const QRect &  rect  ) 
 

Prints the given value.

Parameters:
rect the QRect to print
Returns:
this stream

Definition at line 550 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QSize &  size  ) 
 

Prints the given value.

Parameters:
size the QSize to print
Returns:
this stream

Definition at line 543 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QPoint &  point  ) 
 

Prints the given value.

Parameters:
point the point to print
Returns:
this stream

Definition at line 536 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const QTime time  ) 
 

Prints the given value.

Parameters:
time the time to print
Returns:
this stream

Definition at line 529 of file odebug.cpp.

References QTime::toString().

odbgstream & Opie::Core::odbgstream::operator<< const QDate date  ) 
 

Prints the given value.

Parameters:
date the date to print
Returns:
this stream

Definition at line 521 of file odebug.cpp.

References QDate::toString().

odbgstream & Opie::Core::odbgstream::operator<< const QDateTime dateTime  ) 
 

Prints the given value.

Parameters:
dateTime the datetime to print
Returns:
this stream

Definition at line 514 of file odebug.cpp.

References QDateTime::toString().

odbgstream & Opie::Core::odbgstream::operator<< QWidget *  widget  ) 
 

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

Definition at line 474 of file odebug.cpp.

References QString::at(), flush(), QString::length(), output, print, QString::setNum(), and Opie::Internal::string().

odbgstream & Opie::Core::odbgstream::operator<< double  d  ) 
 

Prints the given value.

Parameters:
d the double to print
Returns:
this stream

Definition at line 407 of file odebug.cpp.

References output, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< const void *  p  ) 
 

Prints the given value.

Parameters:
p a pointer to print (in number form)
Returns:
this stream

Definition at line 401 of file odebug.cpp.

References form().

odbgstream & Opie::Core::odbgstream::operator<< const QCString string  ) 
 

Prints the given value.

Parameters:
string the string to print
Returns:
this stream

Definition at line 394 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< const char *  string  ) 
 

Prints the given value.

Parameters:
string the string to print
Returns:
this stream

Definition at line 384 of file odebug.cpp.

References QString::at(), flush(), QString::fromUtf8(), QString::length(), output, and print.

odbgstream & Opie::Core::odbgstream::operator<< const QString string  ) 
 

Prints the given value.

Parameters:
string the string to print
Returns:
this stream

Definition at line 374 of file odebug.cpp.

References QString::at(), flush(), QString::length(), output, and print.

odbgstream & Opie::Core::odbgstream::operator<< unsigned long  i  ) 
 

Prints the given value.

Parameters:
i the unsigned long to print
Returns:
this stream

Definition at line 366 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< long  i  ) 
 

Prints the given value.

Parameters:
i the long to print
Returns:
this stream

Definition at line 358 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< unsigned int  i  ) 
 

Prints the given value.

Parameters:
i the unsigned int to print
Returns:
this stream

Definition at line 350 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< int  i  ) 
 

Prints the given value.

Parameters:
i the int to print
Returns:
this stream

Definition at line 342 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< unsigned char  i  ) 
 

Prints the given value.

Parameters:
i the unsigned char to print
Returns:
this stream

Definition at line 336 of file odebug.cpp.

odbgstream & Opie::Core::odbgstream::operator<< char  i  ) 
 

Prints the given value.

Parameters:
i the char to print
Returns:
this stream

Definition at line 459 of file odebug.cpp.

References flush(), QString::number(), output, and print.

odbgstream & Opie::Core::odbgstream::operator<< unsigned short  i  ) 
 

Prints the given value.

Parameters:
i the unsigned short to print
Returns:
this stream

Definition at line 328 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< short  i  ) 
 

Prints the given value.

Parameters:
i the short to print
Returns:
this stream

Definition at line 320 of file odebug.cpp.

References output, print, and QString::setNum().

odbgstream & Opie::Core::odbgstream::operator<< bool  i  ) 
 

Prints the given value.

Parameters:
i the boolean to print (as "true" or "false")
Returns:
this stream

Definition at line 312 of file odebug.cpp.

References QString::fromLatin1(), output, and print.


Member Data Documentation

unsigned int Opie::Core::odbgstream::area [private]
 

Definition at line 282 of file odebug.h.

Referenced by flush().

odbgstreamprivate* Opie::Core::odbgstream::d [private]
 

Definition at line 284 of file odebug.h.

unsigned int Opie::Core::odbgstream::level [private]
 

Definition at line 282 of file odebug.h.

Referenced by flush().

QString Opie::Core::odbgstream::output [private]
 

Definition at line 281 of file odebug.h.

Referenced by flush(), odbgstream(), operator<<(), and ~odbgstream().

bool Opie::Core::odbgstream::print [private]
 

Definition at line 283 of file odebug.h.

Referenced by flush(), and operator<<().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:39 2005 for OPIE by  doxygen 1.4.2