vrshoot
annotate libs/assimp/Win32DebugLogStream.h @ 1:e7ca128b8713
looks nice :)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Feb 2014 00:35:22 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef AI_WIN32DEBUGLOGSTREAM_H_INC |
nuclear@0 | 2 #define AI_WIN32DEBUGLOGSTREAM_H_INC |
nuclear@0 | 3 |
nuclear@0 | 4 #ifdef WIN32 |
nuclear@0 | 5 |
nuclear@0 | 6 #include "assimp/LogStream.hpp" |
nuclear@0 | 7 #include "windows.h" |
nuclear@0 | 8 |
nuclear@0 | 9 namespace Assimp { |
nuclear@0 | 10 |
nuclear@0 | 11 // --------------------------------------------------------------------------- |
nuclear@0 | 12 /** @class Win32DebugLogStream |
nuclear@0 | 13 * @brief Logs into the debug stream from win32. |
nuclear@0 | 14 */ |
nuclear@0 | 15 class Win32DebugLogStream : |
nuclear@0 | 16 public LogStream |
nuclear@0 | 17 { |
nuclear@0 | 18 public: |
nuclear@0 | 19 /** @brief Default constructor */ |
nuclear@0 | 20 Win32DebugLogStream(); |
nuclear@0 | 21 |
nuclear@0 | 22 /** @brief Destructor */ |
nuclear@0 | 23 ~Win32DebugLogStream(); |
nuclear@0 | 24 |
nuclear@0 | 25 /** @brief Writer */ |
nuclear@0 | 26 void write(const char* messgae); |
nuclear@0 | 27 }; |
nuclear@0 | 28 |
nuclear@0 | 29 // --------------------------------------------------------------------------- |
nuclear@0 | 30 // Default constructor |
nuclear@0 | 31 inline Win32DebugLogStream::Win32DebugLogStream() |
nuclear@0 | 32 {} |
nuclear@0 | 33 |
nuclear@0 | 34 // --------------------------------------------------------------------------- |
nuclear@0 | 35 // Default constructor |
nuclear@0 | 36 inline Win32DebugLogStream::~Win32DebugLogStream() |
nuclear@0 | 37 {} |
nuclear@0 | 38 |
nuclear@0 | 39 // --------------------------------------------------------------------------- |
nuclear@0 | 40 // Write method |
nuclear@0 | 41 inline void Win32DebugLogStream::write(const char* message) |
nuclear@0 | 42 { |
nuclear@0 | 43 OutputDebugStringA( message); |
nuclear@0 | 44 } |
nuclear@0 | 45 |
nuclear@0 | 46 // --------------------------------------------------------------------------- |
nuclear@0 | 47 } // Namespace Assimp |
nuclear@0 | 48 |
nuclear@0 | 49 #endif // ! WIN32 |
nuclear@0 | 50 #endif // guard |