added windows_stream.* console colors

This commit is contained in:
rfree2monero 2015-04-01 19:15:38 +02:00
parent c511abf005
commit f9dba47a17
2 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#ifndef WINDOWS_STREAM_H
#define WINDOWS_STREAM_H
#if defined(_WIN32)
#include <string>
#include <iostream>
class windows_stream
{
public:
windows_stream(unsigned int pLevel);
friend std::ostream& operator<<(std::ostream &stream, windows_stream const& object);
private:
unsigned int mLevel = 0;
};
#endif // _WIN32
#endif // WINDOWS_STREAM_H