aboutsummaryrefslogtreecommitdiff
path: root/contrib/otshell_utils/windows_stream.h
diff options
context:
space:
mode:
authorrfree2monero <rfreemonero@op.pl>2015-04-01 19:15:38 +0200
committerrfree2monero <rfreemonero@op.pl>2015-04-01 19:15:38 +0200
commitf9dba47a17f60cf23f8549bd824c0d116d00c282 (patch)
treecc28121d695471f57f2585016c5988c4c9850adb /contrib/otshell_utils/windows_stream.h
parentremerged; commands JSON. logging upgrade. doxygen (diff)
downloadmonero-f9dba47a17f60cf23f8549bd824c0d116d00c282.tar.xz
added windows_stream.* console colors
Diffstat (limited to '')
-rw-r--r--contrib/otshell_utils/windows_stream.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/otshell_utils/windows_stream.h b/contrib/otshell_utils/windows_stream.h
new file mode 100644
index 000000000..859e7ee50
--- /dev/null
+++ b/contrib/otshell_utils/windows_stream.h
@@ -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