Win32DebugLogStream.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
  2. #define AI_WIN32DEBUGLOGSTREAM_H_INC
  3. #include "../include/LogStream.h"
  4. //#ifdef _MSC_VER
  5. #ifdef WIN32
  6. #include "Windows.h"
  7. #endif
  8. namespace Assimp
  9. {
  10. //#ifdef _MSC_VER
  11. #ifdef WIN32
  12. // ---------------------------------------------------------------------------
  13. /** @class Win32DebugLogStream
  14. * @brief Logs into the debug stream from win32.
  15. */
  16. class Win32DebugLogStream :
  17. public LogStream
  18. {
  19. public:
  20. /** @brief Default constructor */
  21. Win32DebugLogStream();
  22. /** @brief Destructor */
  23. ~Win32DebugLogStream();
  24. /** @brief Writer */
  25. void write(const std::string &messgae);
  26. };
  27. // ---------------------------------------------------------------------------
  28. // Default constructor
  29. inline Win32DebugLogStream::Win32DebugLogStream()
  30. {
  31. // empty
  32. }
  33. // ---------------------------------------------------------------------------
  34. // Default constructor
  35. inline Win32DebugLogStream::~Win32DebugLogStream()
  36. {
  37. // empty
  38. }
  39. // ---------------------------------------------------------------------------
  40. // Write method
  41. inline void Win32DebugLogStream::write(const std::string &message)
  42. {
  43. OutputDebugString( message.c_str() );
  44. }
  45. // ---------------------------------------------------------------------------
  46. #endif
  47. } // Namespace Assimp
  48. #endif