vrshoot
diff libs/assimp/Win32DebugLogStream.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/assimp/Win32DebugLogStream.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,50 @@ 1.4 +#ifndef AI_WIN32DEBUGLOGSTREAM_H_INC 1.5 +#define AI_WIN32DEBUGLOGSTREAM_H_INC 1.6 + 1.7 +#ifdef WIN32 1.8 + 1.9 +#include "assimp/LogStream.hpp" 1.10 +#include "windows.h" 1.11 + 1.12 +namespace Assimp { 1.13 + 1.14 +// --------------------------------------------------------------------------- 1.15 +/** @class Win32DebugLogStream 1.16 + * @brief Logs into the debug stream from win32. 1.17 + */ 1.18 +class Win32DebugLogStream : 1.19 + public LogStream 1.20 +{ 1.21 +public: 1.22 + /** @brief Default constructor */ 1.23 + Win32DebugLogStream(); 1.24 + 1.25 + /** @brief Destructor */ 1.26 + ~Win32DebugLogStream(); 1.27 + 1.28 + /** @brief Writer */ 1.29 + void write(const char* messgae); 1.30 +}; 1.31 + 1.32 +// --------------------------------------------------------------------------- 1.33 +// Default constructor 1.34 +inline Win32DebugLogStream::Win32DebugLogStream() 1.35 +{} 1.36 + 1.37 +// --------------------------------------------------------------------------- 1.38 +// Default constructor 1.39 +inline Win32DebugLogStream::~Win32DebugLogStream() 1.40 +{} 1.41 + 1.42 +// --------------------------------------------------------------------------- 1.43 +// Write method 1.44 +inline void Win32DebugLogStream::write(const char* message) 1.45 +{ 1.46 + OutputDebugStringA( message); 1.47 +} 1.48 + 1.49 +// --------------------------------------------------------------------------- 1.50 +} // Namespace Assimp 1.51 + 1.52 +#endif // ! WIN32 1.53 +#endif // guard