39 lines
751 B
C
39 lines
751 B
C
|
#ifndef __ANTHEM__OUTPUT__NULL_STREAM_H
|
||
|
#define __ANTHEM__OUTPUT__NULL_STREAM_H
|
||
|
|
||
|
#include <anthem/output/ColorStream.h>
|
||
|
|
||
|
namespace anthem
|
||
|
{
|
||
|
namespace output
|
||
|
{
|
||
|
namespace detail
|
||
|
{
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// NullStream
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
class NullBuffer : public std::streambuf
|
||
|
{
|
||
|
public:
|
||
|
int overflow(int c)
|
||
|
{
|
||
|
return c;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
extern ColorStream nullStream;
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|