1/*
2---------------------------------------------------------------------------
3Open Asset Import Library (assimp)
4---------------------------------------------------------------------------
5
6Copyright (c) 2006-2017, assimp team
7
8
9All rights reserved.
10
11Redistribution and use of this software in source and binary forms,
12with or without modification, are permitted provided that the following
13conditions are met:
14
15* Redistributions of source code must retain the above
16copyright notice, this list of conditions and the
17following disclaimer.
18
19* Redistributions in binary form must reproduce the above
20copyright notice, this list of conditions and the
21following disclaimer in the documentation and/or other
22materials provided with the distribution.
23
24* Neither the name of the assimp team, nor the names of its
25contributors may be used to endorse or promote products
26derived from this software without specific prior
27written permission of the assimp team.
28
29THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40---------------------------------------------------------------------------
41*/
42
43/** @file Win32DebugLogStream.h
44* @brief Implementation of Win32DebugLogStream
45*/
46#ifndef AI_WIN32DEBUGLOGSTREAM_H_INC
47#define AI_WIN32DEBUGLOGSTREAM_H_INC
48
49#ifdef _WIN32
50
51#include <assimp/LogStream.hpp>
52#include "windows.h"
53
54namespace Assimp {
55
56// ---------------------------------------------------------------------------
57/** @class Win32DebugLogStream
58 * @brief Logs into the debug stream from win32.
59 */
60class Win32DebugLogStream : public LogStream {
61public:
62 /** @brief Default constructor */
63 Win32DebugLogStream();
64
65 /** @brief Destructor */
66 ~Win32DebugLogStream();
67
68 /** @brief Writer */
69 void write(const char* messgae);
70};
71
72// ---------------------------------------------------------------------------
73inline
74Win32DebugLogStream::Win32DebugLogStream(){
75 // empty
76}
77
78// ---------------------------------------------------------------------------
79inline
80Win32DebugLogStream::~Win32DebugLogStream(){
81 // empty
82}
83
84// ---------------------------------------------------------------------------
85inline
86void Win32DebugLogStream::write(const char* message) {
87 ::OutputDebugStringA( message);
88}
89
90// ---------------------------------------------------------------------------
91} // Namespace Assimp
92
93#endif // ! _WIN32
94#endif // guard
95