Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
StreamOutWrapper Class Reference

Wrapper around std::ostream. More...

#include <StreamWrapper.h>

Inheritance diagram for StreamOutWrapper:
StreamOut NonCopyable

Public Member Functions

 StreamOutWrapper (ostream &ioWrapped)
 Constructor. More...
 
virtual void WriteBytes (const void *inData, size_t inNumBytes) override
 Write a string of bytes to the binary stream. More...
 
virtual bool IsFailed () const override
 Returns true if there was an IO failure. More...
 
- Public Member Functions inherited from StreamOut
virtual ~StreamOut ()=default
 Virtual destructor. More...
 
virtual void WriteBytes (const void *inData, size_t inNumBytes)=0
 Write a string of bytes to the binary stream. More...
 
virtual bool IsFailed () const =0
 Returns true if there was an IO failure. More...
 
template<class T >
void Write (const T &inT)
 Write a primitive (e.g. float, int, etc.) to the binary stream. More...
 
template<class T , class A >
void Write (const std::vector< T, A > &inT)
 Write a vector of primitives to the binary stream. More...
 
template<class Type , class Traits , class Allocator >
void Write (const std::basic_string< Type, Traits, Allocator > &inString)
 Write a string to the binary stream (writes the number of characters and then the characters) More...
 
template<class T , class A , typename F >
void Write (const std::vector< T, A > &inT, const F &inWriteElement)
 Write a vector of primitives to the binary stream using a custom write function. More...
 
void Write (const Vec3 &inVec)
 Write a Vec3 (don't write W) More...
 
void Write (const DVec3 &inVec)
 Write a DVec3 (don't write W) More...
 
void Write (const DMat44 &inVec)
 Write a DMat44 (don't write W component of translation) More...
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Wrapper around std::ostream.

Constructor & Destructor Documentation

◆ StreamOutWrapper()

StreamOutWrapper::StreamOutWrapper ( ostream &  ioWrapped)
inline

Constructor.

Member Function Documentation

◆ IsFailed()

virtual bool StreamOutWrapper::IsFailed ( ) const
inlineoverridevirtual

Returns true if there was an IO failure.

Implements StreamOut.

◆ WriteBytes()

virtual void StreamOutWrapper::WriteBytes ( const void *  inData,
size_t  inNumBytes 
)
inlineoverridevirtual

Write a string of bytes to the binary stream.

Implements StreamOut.


The documentation for this class was generated from the following file: