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

Implementation of ObjectStream text input stream. More...

#include <ObjectStreamTextIn.h>

Inheritance diagram for ObjectStreamTextIn:
ObjectStreamIn IObjectStreamIn ObjectStream NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ObjectStreamTextIn (istream &inStream)
 Constructor.
 
- 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.
 
template<class T >
static bool sReadObject (istream &inStream, Ref< T > &outObject)
 Main function to read an object from a stream (reference counting pointer version)
 
template<class T >
static bool sReadObject (const char *inFileName, T *&outObject)
 Main function to read an object from a file.
 
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)
 
- Protected Types inherited from ObjectStream
using Identifier = uint32
 Identifier for objects.
 
- Protected Member Functions inherited from ObjectStreamIn
 ObjectStreamIn (istream &inStream)
 Constructor.
 
- Protected Member Functions inherited from ObjectStream
virtual ~ObjectStream ()=default
 Destructor.
 
- 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.
 
static ObjectStreamInOpen (istream &inStream)
 Static constructor.
 
- 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 text input stream.

Constructor & Destructor Documentation

◆ ObjectStreamTextIn()

JPH_NAMESPACE_BEGIN ObjectStreamTextIn::ObjectStreamTextIn ( istream &  inStream)
explicit

Constructor.

Member Function Documentation

◆ ReadCount()

bool ObjectStreamTextIn::ReadCount ( uint32 outCount)
overridevirtual

Implements IObjectStreamIn.

◆ ReadDataType()

bool ObjectStreamTextIn::ReadDataType ( EOSDataType outType)
overridevirtual

Implements IObjectStreamIn.

◆ ReadIdentifier()

bool ObjectStreamTextIn::ReadIdentifier ( Identifier outIdentifier)
overridevirtual

Implements IObjectStreamIn.

◆ ReadName()

bool ObjectStreamTextIn::ReadName ( String outName)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [1/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( bool &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [2/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( DMat44 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [3/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( double &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [4/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Double3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [5/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( DVec3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [6/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( float &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [7/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Float3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [8/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( int &  outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [9/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Mat44 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [10/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Quat outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [11/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( String outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [12/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( uint16 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [13/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( uint32 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [14/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( uint64 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [15/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( uint8 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [16/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Vec3 outPrimitive)
overridevirtual

Implements IObjectStreamIn.

◆ ReadPrimitiveData() [17/17]

bool ObjectStreamTextIn::ReadPrimitiveData ( Vec4 outPrimitive)
overridevirtual

Implements IObjectStreamIn.


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