libyui  3.0.13
 All Classes Functions Variables Enumerations Friends
YUILogBuffer Class Reference
Inheritance diagram for YUILogBuffer:
Collaboration diagram for YUILogBuffer:

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
 

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 54 of file YUILog.cc.

Constructor & Destructor Documentation

YUILogBuffer::YUILogBuffer ( )
inline

Constructor.

Definition at line 63 of file YUILog.cc.

virtual YUILogBuffer::~YUILogBuffer ( )
inlinevirtual

Destructor.

Definition at line 73 of file YUILog.cc.

Here is the call graph for this function:

Member Function Documentation

void YUILogBuffer::flush ( )

Flush the output buffer: Write any data unwritten so far.

Definition at line 178 of file YUILog.cc.

Here is the call graph for this function:

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

Write one character in case of buffer overflow.

Reimplemented from std::streambuf.

Definition at line 166 of file YUILog.cc.

Here is the call graph for this function:

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 121 of file YUILog.cc.

Here is the call graph for this function:

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 std::streambuf. This is called for all output operations on the associated ostream.

Definition at line 159 of file YUILog.cc.

Here is the call graph for this function:


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