vrshoot
view 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 |
line source
1 #ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
2 #define AI_WIN32DEBUGLOGSTREAM_H_INC
4 #ifdef WIN32
6 #include "assimp/LogStream.hpp"
7 #include "windows.h"
9 namespace Assimp {
11 // ---------------------------------------------------------------------------
12 /** @class Win32DebugLogStream
13 * @brief Logs into the debug stream from win32.
14 */
15 class Win32DebugLogStream :
16 public LogStream
17 {
18 public:
19 /** @brief Default constructor */
20 Win32DebugLogStream();
22 /** @brief Destructor */
23 ~Win32DebugLogStream();
25 /** @brief Writer */
26 void write(const char* messgae);
27 };
29 // ---------------------------------------------------------------------------
30 // Default constructor
31 inline Win32DebugLogStream::Win32DebugLogStream()
32 {}
34 // ---------------------------------------------------------------------------
35 // Default constructor
36 inline Win32DebugLogStream::~Win32DebugLogStream()
37 {}
39 // ---------------------------------------------------------------------------
40 // Write method
41 inline void Win32DebugLogStream::write(const char* message)
42 {
43 OutputDebugStringA( message);
44 }
46 // ---------------------------------------------------------------------------
47 } // Namespace Assimp
49 #endif // ! WIN32
50 #endif // guard