assimp/code/Win32DebugLogStream.h

51 lines
1.2 KiB
C
Raw Normal View History

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