2008-05-08 20:02:51 +00:00
|
|
|
#ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
#define AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
|
2008-05-10 08:30:42 +00:00
|
|
|
#ifdef WIN32
|
2009-01-12 22:06:54 +00:00
|
|
|
|
|
|
|
#include "../include/LogStream.h"
|
2008-05-08 20:02:51 +00:00
|
|
|
#include "Windows.h"
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
namespace Assimp {
|
2008-05-08 20:02:51 +00:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** @class Win32DebugLogStream
|
|
|
|
* @brief Logs into the debug stream from win32.
|
|
|
|
*/
|
|
|
|
class Win32DebugLogStream :
|
|
|
|
public LogStream
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/** @brief Default constructor */
|
|
|
|
Win32DebugLogStream();
|
|
|
|
|
|
|
|
/** @brief Destructor */
|
|
|
|
~Win32DebugLogStream();
|
|
|
|
|
|
|
|
/** @brief Writer */
|
2009-01-23 21:06:43 +00:00
|
|
|
void write(const char* messgae);
|
2008-05-08 20:02:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Default constructor
|
|
|
|
inline Win32DebugLogStream::Win32DebugLogStream()
|
2009-01-12 22:06:54 +00:00
|
|
|
{}
|
2008-05-08 20:02:51 +00:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Default constructor
|
|
|
|
inline Win32DebugLogStream::~Win32DebugLogStream()
|
2009-01-12 22:06:54 +00:00
|
|
|
{}
|
2008-05-08 20:02:51 +00:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Write method
|
2009-01-23 21:06:43 +00:00
|
|
|
inline void Win32DebugLogStream::write(const char* message)
|
2008-05-08 20:02:51 +00:00
|
|
|
{
|
2009-01-23 21:06:43 +00:00
|
|
|
OutputDebugString( message);
|
2008-05-08 20:02:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
} // Namespace Assimp
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
#endif // ! WIN32
|
|
|
|
#endif // guard
|