Evo C++ Library v0.5.1
|
#include <evo/iothread.h>
Multithreaded console I/O.
Public Types | |
typedef PipeOut::Format | Format |
Stream output formatter with state. More... | |
typedef StreamExtMT< PipeIn, Mutex > | InT |
Input type. More... | |
typedef Mutex::Lock | Lock |
Mutex lock type. More... | |
typedef StreamExtMT< PipeOut, Mutex > | OutT |
Output type. More... | |
Static Public Member Functions | |
static ConsoleMT & | get () |
Get console instance to use. More... | |
Public Attributes | |
OutT | err |
Write to console, error output. More... | |
InT | in |
Read console input. More... | |
OutT | out |
Write to console, normal output. More... | |
typedef PipeOut::Format Format |
Stream output formatter with state.
Example using File:
Example using Console (stdout):
For more examples see: Stream Formatting
typedef StreamExtMT<PipeIn,Mutex> InT |
Input type.
typedef Mutex::Lock Lock |
Mutex lock type.
typedef StreamExtMT<PipeOut,Mutex> OutT |
Output type.
OutT err |
Write to console, error output.
InT in |
Read console input.
OutT out |
Write to console, normal output.