23 #ifndef COM_DAFER45_TBTK_STREAMS 24 #define COM_DAFER45_TBTK_STREAMS 37 static std::ostream
out;
40 static std::ostream
log;
43 static std::ostream
err;
52 static void openLog(std::string filename =
"TBTKLog");
61 static class NullBuffer :
public std::streambuf{
67 class ForkBuffer :
public std::streambuf{
71 std::basic_ostream<
char, std::char_traits<char>> *ostream1,
72 std::basic_ostream<
char, std::char_traits<char>> *ostream2
76 void mute(
int n,
bool isMute);
79 std::basic_ostream<char, std::char_traits<char>> *ostreams[2];
90 class LogBuffer :
public std::streambuf{
99 void open(std::string fileName);
116 static std::ostream null;
119 static ForkBuffer stdOutBuffer;
122 static LogBuffer stdLogBuffer;
125 static ForkBuffer stdErrBuffer;
128 static std::ofstream logFile;
static std::ostream err
Definition: Streams.h:43
static void setStdMuteErr()
Definition: Streams.cpp:57
static bool logIsOpen()
Definition: Streams.cpp:70
static std::ostream out
Definition: Streams.h:37
static void setStdMuteOut()
Definition: Streams.cpp:52
Definition: AbstractOperator.h:26
static void openLog(std::string filename="TBTKLog")
Definition: Streams.cpp:62
static void closeLog()
Definition: Streams.cpp:66
static std::ostream log
Definition: Streams.h:40