GNE  0.75.0
GNE::Console::goutbuf Class Reference

A class derived from streambuf that uses the functions in the Console class. More...

#include <ConsoleStreambuf.h>

List of all members.

Public Member Functions

void setNextWriteLoc (int x, int y)
 If set, the next output will be an mlprintf instead of a mprintf, with the specified coordinates.
void setNextWriteLoc (int x, int y)

Protected Member Functions

int sync ()
void flush_output ()
int_type overflow (int_type meta=traits_type::eof())
std::streamsize xsputn (const char_type *ptr, std::streamsize count)
int sync ()
void flush_output ()
int overflow (int meta=EOF)
std::streamsize xsputn (const char *ptr, std::streamsize count)

Detailed Description

A class derived from streambuf that uses the functions in the Console class.

This allows cout or another ostream to work under GNE by using the Console class for multithreaded I/O. You should use the GNE::Console::gout object rather than using this class directly.

For specifics on these functions, consult a standard C++ library reference.


Member Function Documentation

Bug:
does not handle nulls in the stream properly in all cases although most of the time it works.

It seems at least for the case of a null followed by a newline it ignores the newline. Other cases seem to work.


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