libyui
|
Public Member Functions | |
YUILogBuffer () | |
virtual | ~YUILogBuffer () |
virtual std::streamsize | xsputn (const char *sequence, std::streamsize maxLength) |
virtual int | overflow (int ch=EOF) |
std::streamsize | writeBuffer (const char *sequence, std::streamsize seqLen) |
void | flush () |
Friends | |
class | YUILog |
Stream buffer class that will use the YUILog's logger function.
See also http://blogs.awesomeplay.com/elanthis/archives/2007/12/10/
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
void YUILogBuffer::flush | ( | ) |
Flush the output buffer: Write any data unwritten so far.
Write one character in case of buffer overflow.
Reimplemented from streambuf.
Write (no more than maxLength characters of) a sequence of characters and return the number of characters written.
This is the actual worker function that uses the YUILog::loggerFunction to actually write characters.
Write (no more than maxLength characters of) a sequence of characters and return the number of characters written.
Reimplemented from streambuf. This is called for all output operations on the associated ostream.