libyui  3.10.0
YUILogBuffer Class Reference

Stream buffer class that will use the YUILog's logger function. More...

Inheritance diagram for YUILogBuffer:

Public Member Functions

 YUILogBuffer ()
 Constructor.
 
virtual ~YUILogBuffer ()
 Destructor.
 
virtual std::streamsize xsputn (const char *sequence, std::streamsize maxLength)
 Write (no more than maxLength characters of) a sequence of characters and return the number of characters written. More...
 
virtual int overflow (int ch=EOF)
 Write one character in case of buffer overflow. More...
 
std::streamsize writeBuffer (const char *sequence, std::streamsize seqLen)
 Write (no more than maxLength characters of) a sequence of characters and return the number of characters written. More...
 
void flush ()
 Flush the output buffer: Write any data unwritten so far.
 

Friends

class YUILog
 

Detailed Description

Stream buffer class that will use the YUILog's logger function.

See also http://blogs.awesomeplay.com/elanthis/archives/2007/12/10/

Definition at line 58 of file YUILog.cc.

Member Function Documentation

◆ overflow()

int YUILogBuffer::overflow ( int  ch = EOF)
virtual

Write one character in case of buffer overflow.

Reimplemented from streambuf.

Definition at line 170 of file YUILog.cc.

◆ writeBuffer()

std::streamsize YUILogBuffer::writeBuffer ( const char *  sequence,
std::streamsize  seqLen 
)

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.

Definition at line 125 of file YUILog.cc.

◆ xsputn()

std::streamsize YUILogBuffer::xsputn ( const char *  sequence,
std::streamsize  maxLength 
)
virtual

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.

Definition at line 163 of file YUILog.cc.


The documentation for this class was generated from the following file: