2008-05-08 20:02:51 +00:00
|
|
|
#ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
#define AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
|
2008-05-21 15:35:28 +00:00
|
|
|
#include "../include/LogStream.h"
|
2008-05-08 20:02:51 +00:00
|
|
|
|
2008-05-10 08:30:42 +00:00
|
|
|
//#ifdef _MSC_VER
|
|
|
|
#ifdef WIN32
|
2008-05-08 20:02:51 +00:00
|
|
|
#include "Windows.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace Assimp
|
|
|
|
{
|
2008-05-10 08:30:42 +00:00
|
|
|
//#ifdef _MSC_VER
|
|
|
|
#ifdef WIN32
|
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 */
|
|
|
|
void write(const std::string &messgae);
|
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Default constructor
|
|
|
|
inline Win32DebugLogStream::Win32DebugLogStream()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Default constructor
|
|
|
|
inline Win32DebugLogStream::~Win32DebugLogStream()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Write method
|
|
|
|
inline void Win32DebugLogStream::write(const std::string &message)
|
|
|
|
{
|
|
|
|
OutputDebugString( message.c_str() );
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // Namespace Assimp
|
|
|
|
|
|
|
|
#endif
|