1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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