NeoVision
A "modern" take on the turbovision tui library.
|
Input/Output. More...
#include <crt.h>
Public Member Functions | |
IO () | |
Default constructor. More... | |
IO (IO const &)=delete | |
Copy constructor (deleted). More... | |
void | operator= (IO const &)=delete |
Assignment operator (deleted). More... | |
std::reference_wrapper< std::istream > | InputStream () |
Get input stream. More... | |
void | SetInputStream (std::istream &stream) |
Sets the current input stream. More... | |
void | SetOutputStream (std::ostream &stream) |
Sets the current output stream. More... | |
void | Write (const std::string &str) |
Write output. More... | |
Static Public Member Functions | |
static IO & | Get () |
Get singleton instance. More... | |
Input/Output.
Internal singleton class to hold parameters and functions for thread-safe text input and output.
You typically shouldn't have to interact with this unless you want to change the output (or input) stream. For instance, if you were to want to output to stderr, you could do the following:
|
delete |
Copy constructor (deleted).
|
static |
std::reference_wrapper<std::istream> neovision::IO::InputStream | ( | ) |
Get input stream.
This function provides low-level access to the current input stream.
|
delete |
Assignment operator (deleted).
void neovision::IO::SetInputStream | ( | std::istream & | stream | ) |
void neovision::IO::SetOutputStream | ( | std::ostream & | stream | ) |
void neovision::IO::Write | ( | const std::string & | str | ) |