Panda3D
Public Member Functions | Protected Member Functions

WordWrapStreamBuf Class Reference

Used by WordWrapStream to implement an ostream that flushes its output to ProgramBase::show_text(). More...

#include "wordWrapStreamBuf.h"

List of all members.

Public Member Functions

 WordWrapStreamBuf (WordWrapStream *owner, ProgramBase *program)

Protected Member Functions

virtual int overflow (int c)
 Called by the system ostream implementation when its internal buffer is filled, plus one character.
virtual int sync ()
 Called by the system ostream implementation when the buffer should be flushed to output (for instance, on destruction).

Detailed Description

Used by WordWrapStream to implement an ostream that flushes its output to ProgramBase::show_text().

Definition at line 30 of file wordWrapStreamBuf.h.


Member Function Documentation

int WordWrapStreamBuf::overflow ( int  c) [protected, virtual]

Called by the system ostream implementation when its internal buffer is filled, plus one character.

Definition at line 74 of file wordWrapStreamBuf.cxx.

References sync().

int WordWrapStreamBuf::sync ( void  ) [protected, virtual]

Called by the system ostream implementation when the buffer should be flushed to output (for instance, on destruction).

Definition at line 57 of file wordWrapStreamBuf.cxx.

Referenced by overflow().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations