Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Basics
TextOutput.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <iostream>
4
#include <string>
5
#include <unordered_set>
6
7
namespace
iv
8
{
9
10
class
TextOutput_streambuf
:
public
std::streambuf
11
{
12
public
:
13
TextOutput_streambuf
();
14
virtual
std::streambuf::int_type
overflow
( std::streambuf::int_type value )
override
;
15
16
private
:
17
void
flush_as_line();
18
private
:
19
std::string buffer;
20
};
21
22
class
TextOutput_ostream
:
public
std::ostream
23
{
24
public
:
25
TextOutput_ostream
();
26
~TextOutput_ostream
();
27
};
28
29
extern
TextOutput_ostream
TextOutput
;
30
31
}