nuclear@0: #ifndef AI_WIN32DEBUGLOGSTREAM_H_INC nuclear@0: #define AI_WIN32DEBUGLOGSTREAM_H_INC nuclear@0: nuclear@0: #ifdef WIN32 nuclear@0: nuclear@0: #include "assimp/LogStream.hpp" nuclear@0: #include "windows.h" nuclear@0: nuclear@0: namespace Assimp { nuclear@0: nuclear@0: // --------------------------------------------------------------------------- nuclear@0: /** @class Win32DebugLogStream nuclear@0: * @brief Logs into the debug stream from win32. nuclear@0: */ nuclear@0: class Win32DebugLogStream : nuclear@0: public LogStream nuclear@0: { nuclear@0: public: nuclear@0: /** @brief Default constructor */ nuclear@0: Win32DebugLogStream(); nuclear@0: nuclear@0: /** @brief Destructor */ nuclear@0: ~Win32DebugLogStream(); nuclear@0: nuclear@0: /** @brief Writer */ nuclear@0: void write(const char* messgae); nuclear@0: }; nuclear@0: nuclear@0: // --------------------------------------------------------------------------- nuclear@0: // Default constructor nuclear@0: inline Win32DebugLogStream::Win32DebugLogStream() nuclear@0: {} nuclear@0: nuclear@0: // --------------------------------------------------------------------------- nuclear@0: // Default constructor nuclear@0: inline Win32DebugLogStream::~Win32DebugLogStream() nuclear@0: {} nuclear@0: nuclear@0: // --------------------------------------------------------------------------- nuclear@0: // Write method nuclear@0: inline void Win32DebugLogStream::write(const char* message) nuclear@0: { nuclear@0: OutputDebugStringA( message); nuclear@0: } nuclear@0: nuclear@0: // --------------------------------------------------------------------------- nuclear@0: } // Namespace Assimp nuclear@0: nuclear@0: #endif // ! WIN32 nuclear@0: #endif // guard