You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Win32DebugLogStream.h 1.2 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
  2. #define AI_WIN32DEBUGLOGSTREAM_H_INC
  3. #ifdef WIN32
  4. #include "../include/assimp/LogStream.hpp"
  5. #include "windows.h"
  6. namespace Assimp {
  7. // ---------------------------------------------------------------------------
  8. /** @class Win32DebugLogStream
  9. * @brief Logs into the debug stream from win32.
  10. */
  11. class Win32DebugLogStream :
  12. public LogStream
  13. {
  14. public:
  15. /** @brief Default constructor */
  16. Win32DebugLogStream();
  17. /** @brief Destructor */
  18. ~Win32DebugLogStream();
  19. /** @brief Writer */
  20. void write(const char* messgae);
  21. };
  22. // ---------------------------------------------------------------------------
  23. // Default constructor
  24. inline Win32DebugLogStream::Win32DebugLogStream()
  25. {}
  26. // ---------------------------------------------------------------------------
  27. // Default constructor
  28. inline Win32DebugLogStream::~Win32DebugLogStream()
  29. {}
  30. // ---------------------------------------------------------------------------
  31. // Write method
  32. inline void Win32DebugLogStream::write(const char* message)
  33. {
  34. OutputDebugStringA( message);
  35. }
  36. // ---------------------------------------------------------------------------
  37. } // Namespace Assimp
  38. #endif // ! WIN32
  39. #endif // guard