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

Implementation of ObjectStream binary input stream. More...

#include <ObjectStreamBinaryIn.h>

Inheritance diagram for ObjectStreamBinaryIn:
ObjectStreamIn IObjectStreamIn ObjectStream NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ObjectStreamBinaryIn (istream &inStream)
 Constructor. More...
 
- Public Member Functions inherited from ObjectStreamIn
void * Read (const RTTI *inRTTI)
 
void * ReadObject (const RTTI *&outRTTI)
 
bool ReadRTTI ()
 
virtual bool ReadClassData (const char *inClassName, void *inInstance) override
 
bool ReadClassData (const ClassDescription &inClassDesc, void *inInstance)
 
virtual bool ReadPointerData (const RTTI *inRTTI, void **inPointer, int inRefCountOffset=-1) override
 
bool SkipAttributeData (int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
Input type specific operations
Read primitives
Read compounds
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Input type specific operations

virtual bool ReadDataType (EOSDataType &outType) override
 
virtual bool ReadName (String &outName) override
 
virtual bool ReadIdentifier (Identifier &outIdentifier) override
 
virtual bool ReadCount (uint32 &outCount) override
 
virtual bool ReadPrimitiveData (uint8 &outPrimitive) override
 
virtual bool ReadPrimitiveData (uint16 &outPrimitive) override
 
virtual bool ReadPrimitiveData (int &outPrimitive) override
 
virtual bool ReadPrimitiveData (uint32 &outPrimitive) override
 
virtual bool ReadPrimitiveData (uint64 &outPrimitive) override
 
virtual bool ReadPrimitiveData (float &outPrimitive) override
 
virtual bool ReadPrimitiveData (double &outPrimitive) override
 
virtual bool ReadPrimitiveData (bool &outPrimitive) override
 
virtual bool ReadPrimitiveData (String &outPrimitive) override
 
virtual bool ReadPrimitiveData (Float3 &outPrimitive) override
 
virtual bool ReadPrimitiveData (Double3 &outPrimitive) override
 
virtual bool ReadPrimitiveData (Vec3 &outPrimitive) override
 
virtual bool ReadPrimitiveData (DVec3 &outPrimitive) override
 
virtual bool ReadPrimitiveData (Vec4 &outPrimitive) override
 
virtual bool ReadPrimitiveData (Quat &outPrimitive) override
 
virtual bool ReadPrimitiveData (Mat44 &outPrimitive) override
 
virtual bool ReadPrimitiveData (DMat44 &outPrimitive) override
 

Additional Inherited Members

- Public Types inherited from ObjectStream
enum class  EStreamType { Text , Binary }
 Stream type. More...
 
- Static Public Member Functions inherited from ObjectStreamIn
template<class T >
static bool sReadObject (istream &inStream, T *&outObject)
 Main function to read an object from a stream. More...
 
template<class T >
static bool sReadObject (istream &inStream, Ref< T > &outObject)
 Main function to read an object from a stream (reference counting pointer version) More...
 
template<class T >
static bool sReadObject (const char *inFileName, T *&outObject)
 Main function to read an object from a file. More...
 
template<class T >
static bool sReadObject (const char *inFileName, Ref< T > &outObject)
 Main function to read an object from a file (reference counting pointer version) More...
 
- Protected Types inherited from ObjectStream
using Identifier = uint32
 Identifier for objects. More...
 
- Protected Member Functions inherited from ObjectStreamIn
 ObjectStreamIn (istream &inStream)
 Constructor. More...
 
- Protected Member Functions inherited from ObjectStream
virtual ~ObjectStream ()=default
 Destructor. More...
 
- Static Protected Member Functions inherited from ObjectStreamIn
static bool GetInfo (istream &inStream, EStreamType &outType, int &outVersion, int &outRevision)
 Determine the type and version of an object stream. More...
 
static ObjectStreamInOpen (istream &inStream)
 Static constructor. More...
 
- Protected Attributes inherited from ObjectStreamIn
istream & 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 input stream.

Constructor & Destructor Documentation

◆ ObjectStreamBinaryIn()

JPH_NAMESPACE_BEGIN ObjectStreamBinaryIn::ObjectStreamBinaryIn ( istream &  inStream)
explicit

Constructor.

Member Function Documentation

◆ ReadCount()

bool ObjectStreamBinaryIn::ReadCount ( uint32 outCount)
overridevirtual

Implements IObjectStreamIn.

◆ ReadDataType()

bool ObjectStreamBinaryIn::ReadDataType ( EOSDataType outType)
overridevirtual

Implements IObjectStreamIn.

◆ ReadIdentifier()

bool ObjectStreamBinaryIn::ReadIdentifier ( Identifier outIdentifier)
overridevirtual

Implements IObjectStreamIn.

◆ ReadName()

bool ObjectStreamBinaryIn::ReadName ( String outName)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [1/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( bool &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [2/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( DMat44 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [3/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( double &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [4/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Double3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [5/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( DVec3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [6/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( float &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [7/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Float3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [8/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( int &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [9/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Mat44 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [10/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Quat outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [11/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( String outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [12/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( uint16 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [13/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( uint32 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [14/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( uint64 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [15/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( uint8 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [16/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Vec3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [17/17]

bool ObjectStreamBinaryIn::ReadPrimitiveData ( Vec4 outPrimitive)
overridevirtual

Implements IObjectStreamIn.


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