25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

51 satır
1.2 KiB

  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