Main Page   Modules   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

GNE::Console::moveTo Class Reference
[Console API]

#include <ConsoleStream.h>

Inheritance diagram for GNE::Console::moveTo:

List of all members.

Public Member Functions

 moveTo (int xLoc, int yLoc)
void action (GOut &o) const

Detailed Description

A manipulator for gout essentially meant to facilitate a C++ iostream version of mlprintf. Using moveTo in the gout stream (and ONLY gout), will set the stream to display the next line-buffered text using an mlprintf rather than a normal mprintf. gout needs to be acquired if other threads might write to gout. The following code:

gout << acquire << moveTo(10, 15) << "Hello, World!" << flush << release;

works like mlprintf(10, 15, "Hello, World!");. Other stuff may be before if anything is in the stream -- remember gout only displays when it encounters a newline or is explicitly flushed.

The position 0,0 is the upper left corner of the console.


The documentation for this class was generated from the following files:
Generated on Fri Aug 22 13:40:07 2003 for GNE by doxygen1.3