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:
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:
27 };
28 
30 
31 }