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

Implementation of ObjectStream binary output stream. More...

#include <ObjectStreamBinaryOut.h>

Inheritance diagram for ObjectStreamBinaryOut:
ObjectStreamOut IObjectStreamOut ObjectStream NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ObjectStreamBinaryOut (ostream &inStream)
 Constructor and destructor. More...
 
- Public Member Functions inherited from ObjectStreamOut
bool Write (const void *inObject, const RTTI *inRTTI)
 
void WriteObject (const void *inObject)
 
void QueueRTTI (const RTTI *inRTTI)
 
void WriteRTTI (const RTTI *inRTTI)
 
virtual void WriteClassData (const RTTI *inRTTI, const void *inInstance) override
 
virtual void WritePointerData (const RTTI *inRTTI, const void *inPointer) override
 
- Public Member Functions inherited from IObjectStreamOut
virtual void HintNextItem ()
 
virtual void HintIndentUp ()
 
virtual void HintIndentDown ()
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Output type specific operations

virtual void WriteDataType (EOSDataType inType) override
 
virtual void WriteName (const char *inName) override
 
virtual void WriteIdentifier (Identifier inIdentifier) override
 
virtual void WriteCount (uint32 inCount) override
 
virtual void WritePrimitiveData (const uint8 &inPrimitive) override
 
virtual void WritePrimitiveData (const uint16 &inPrimitive) override
 
virtual void WritePrimitiveData (const int &inPrimitive) override
 
virtual void WritePrimitiveData (const uint32 &inPrimitive) override
 
virtual void WritePrimitiveData (const uint64 &inPrimitive) override
 
virtual void WritePrimitiveData (const float &inPrimitive) override
 
virtual void WritePrimitiveData (const double &inPrimitive) override
 
virtual void WritePrimitiveData (const bool &inPrimitive) override
 
virtual void WritePrimitiveData (const String &inPrimitive) override
 
virtual void WritePrimitiveData (const Float3 &inPrimitive) override
 
virtual void WritePrimitiveData (const Double3 &inPrimitive) override
 
virtual void WritePrimitiveData (const Vec3 &inPrimitive) override
 
virtual void WritePrimitiveData (const DVec3 &inPrimitive) override
 
virtual void WritePrimitiveData (const Vec4 &inPrimitive) override
 
virtual void WritePrimitiveData (const Quat &inPrimitive) override
 
virtual void WritePrimitiveData (const Mat44 &inPrimitive) override
 
virtual void WritePrimitiveData (const DMat44 &inPrimitive) override
 

Additional Inherited Members

- Public Types inherited from ObjectStream
enum class  EStreamType { Text , Binary }
 Stream type. More...
 
- Static Public Member Functions inherited from ObjectStreamOut
template<class T >
static bool sWriteObject (ostream &inStream, ObjectStream::EStreamType inType, const T &inObject)
 Main function to write an object to a stream. More...
 
template<class T >
static bool sWriteObject (const char *inFileName, ObjectStream::EStreamType inType, const T &inObject)
 Main function to write an object to a file. More...
 
- Protected Types inherited from ObjectStream
using Identifier = uint32
 Identifier for objects. More...
 
- Protected Member Functions inherited from ObjectStreamOut
 ObjectStreamOut (ostream &inStream)
 Constructor. More...
 
- Protected Member Functions inherited from ObjectStream
virtual ~ObjectStream ()=default
 Destructor. More...
 
- Static Protected Member Functions inherited from ObjectStreamOut
static ObjectStreamOutOpen (EStreamType inType, ostream &inStream)
 Static constructor. More...
 
- Protected Attributes inherited from ObjectStreamOut
ostream & mStream
 
- Static Protected Attributes inherited from ObjectStream
static constexpr int sVersion = 1
 
static constexpr int sRevision = 0
 
static constexpr Identifier sNullIdentifier = 0
 

Detailed Description

Implementation of ObjectStream binary output stream.

Constructor & Destructor Documentation

◆ ObjectStreamBinaryOut()

JPH_NAMESPACE_BEGIN ObjectStreamBinaryOut::ObjectStreamBinaryOut ( ostream &  inStream)
explicit

Constructor and destructor.

Member Function Documentation

◆ WriteCount()

void ObjectStreamBinaryOut::WriteCount ( uint32  inCount)
overridevirtual

Implements IObjectStreamOut.

◆ WriteDataType()

void ObjectStreamBinaryOut::WriteDataType ( EOSDataType  inType)
overridevirtual

Implements IObjectStreamOut.

◆ WriteIdentifier()

void ObjectStreamBinaryOut::WriteIdentifier ( Identifier  inIdentifier)
overridevirtual

Implements IObjectStreamOut.

◆ WriteName()

void ObjectStreamBinaryOut::WriteName ( const char *  inName)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [1/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const bool &  inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [2/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const DMat44 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [3/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const double &  inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [4/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Double3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [5/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const DVec3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [6/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const float &  inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [7/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Float3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [8/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const int &  inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [9/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Mat44 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [10/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Quat inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [11/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const String inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [12/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const uint16 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [13/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const uint32 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [14/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const uint64 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [15/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const uint8 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [16/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Vec3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [17/17]

void ObjectStreamBinaryOut::WritePrimitiveData ( const Vec4 inPrimitive)
overridevirtual

Implements IObjectStreamOut.


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