diff options
Diffstat (limited to 'src/3rdparty/assimp/code/StdOStreamLogStream.h')
-rw-r--r-- | src/3rdparty/assimp/code/StdOStreamLogStream.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/src/3rdparty/assimp/code/StdOStreamLogStream.h b/src/3rdparty/assimp/code/StdOStreamLogStream.h index 20482fef7..d9993b246 100644 --- a/src/3rdparty/assimp/code/StdOStreamLogStream.h +++ b/src/3rdparty/assimp/code/StdOStreamLogStream.h @@ -3,7 +3,8 @@ Open Asset Import Library (assimp) --------------------------------------------------------------------------- -Copyright (c) 2006-2016, assimp team +Copyright (c) 2006-2017, assimp team + All rights reserved. @@ -38,6 +39,11 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------- */ + +/** @file StdOStreamLogStream.h +* @brief Implementation of StdOStreamLogStream +*/ + #ifndef AI_STROSTREAMLOGSTREAM_H_INC #define AI_STROSTREAMLOGSTREAM_H_INC @@ -50,8 +56,7 @@ namespace Assimp { /** @class StdOStreamLogStream * @brief Logs into a std::ostream */ -class StdOStreamLogStream : public LogStream -{ +class StdOStreamLogStream : public LogStream { public: /** @brief Construction from an existing std::ostream * @param _ostream Output stream to be used @@ -63,30 +68,33 @@ public: /** @brief Writer */ void write(const char* message); + private: - std::ostream& ostream; + std::ostream& mOstream; }; // --------------------------------------------------------------------------- // Default constructor inline StdOStreamLogStream::StdOStreamLogStream(std::ostream& _ostream) - : ostream (_ostream) -{} +: mOstream (_ostream){ + // empty +} // --------------------------------------------------------------------------- // Default constructor -inline StdOStreamLogStream::~StdOStreamLogStream() -{} +inline StdOStreamLogStream::~StdOStreamLogStream() { + // empty +} // --------------------------------------------------------------------------- // Write method -inline void StdOStreamLogStream::write(const char* message) -{ - ostream << message; - ostream.flush(); +inline void StdOStreamLogStream::write(const char* message) { + mOstream << message; + mOstream.flush(); } // --------------------------------------------------------------------------- + } // Namespace Assimp #endif // guard |