2015-05-19 03:48:29 +00:00
|
|
|
#ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
#define AI_WIN32DEBUGLOGSTREAM_H_INC
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
|
2016-06-06 20:04:29 +00:00
|
|
|
#include <assimp/LogStream.hpp>
|
2015-05-19 03:48:29 +00:00
|
|
|
#include "windows.h"
|
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
namespace Assimp {
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2015-05-19 03:57:13 +00:00
|
|
|
/** @class Win32DebugLogStream
|
|
|
|
* @brief Logs into the debug stream from win32.
|
2015-05-19 03:48:29 +00:00
|
|
|
*/
|
|
|
|
class Win32DebugLogStream :
|
2015-05-19 03:57:13 +00:00
|
|
|
public LogStream
|
2015-05-19 03:48:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-05-19 03:57:13 +00:00
|
|
|
/** @brief Default constructor */
|
|
|
|
Win32DebugLogStream();
|
2015-05-19 03:48:29 +00:00
|
|
|
|
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:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2015-05-19 03:57:13 +00:00
|
|
|
// Default constructor
|
2015-05-19 03:48:29 +00:00
|
|
|
inline Win32DebugLogStream::Win32DebugLogStream()
|
|
|
|
{}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2015-05-19 03:57:13 +00:00
|
|
|
// Default constructor
|
2015-05-19 03:48:29 +00:00
|
|
|
inline Win32DebugLogStream::~Win32DebugLogStream()
|
|
|
|
{}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2015-05-19 03:57:13 +00:00
|
|
|
// Write method
|
2015-05-19 03:48:29 +00:00
|
|
|
inline void Win32DebugLogStream::write(const char* message)
|
|
|
|
{
|
2015-05-19 03:57:13 +00:00
|
|
|
OutputDebugStringA( message);
|
2015-05-19 03:48:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2015-05-19 03:57:13 +00:00
|
|
|
} // Namespace Assimp
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
#endif // ! WIN32
|
|
|
|
#endif // guard
|