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

Implementation of ObjectStream text output stream. More...

#include <ObjectStreamTextOut.h>

Inheritance diagram for ObjectStreamTextOut:
ObjectStreamOut IObjectStreamOut ObjectStream NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ObjectStreamTextOut (ostream &inStream)
 Constructor and destructor.
 
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
 
- 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
 
Output type specific operations
Write primitives
Write compounds
Layout hints (for text output)
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Layout hints (for text output)

virtual void HintNextItem () override
 
virtual void HintIndentUp () override
 
virtual void HintIndentDown () 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.
 
template<class T >
static bool sWriteObject (const char *inFileName, ObjectStream::EStreamType inType, const T &inObject)
 Main function to write an object to a file.
 
- Protected Types inherited from ObjectStream
using Identifier = uint32
 Identifier for objects.
 
- Protected Member Functions inherited from ObjectStreamOut
 ObjectStreamOut (ostream &inStream)
 Constructor.
 
- Protected Member Functions inherited from ObjectStream
virtual ~ObjectStream ()=default
 Destructor.
 
- Static Protected Member Functions inherited from ObjectStreamOut
static ObjectStreamOutOpen (EStreamType inType, ostream &inStream)
 Static constructor.
 
- 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 text output stream.

Constructor & Destructor Documentation

◆ ObjectStreamTextOut()

JPH_NAMESPACE_BEGIN ObjectStreamTextOut::ObjectStreamTextOut ( ostream &  inStream)
explicit

Constructor and destructor.

Member Function Documentation

◆ HintIndentDown()

void ObjectStreamTextOut::HintIndentDown ( )
overridevirtual

Reimplemented from IObjectStreamOut.

◆ HintIndentUp()

void ObjectStreamTextOut::HintIndentUp ( )
overridevirtual

Reimplemented from IObjectStreamOut.

◆ HintNextItem()

void ObjectStreamTextOut::HintNextItem ( )
overridevirtual

Reimplemented from IObjectStreamOut.

◆ WriteCount()

void ObjectStreamTextOut::WriteCount ( uint32  inCount)
overridevirtual

Implements IObjectStreamOut.

◆ WriteDataType()

void ObjectStreamTextOut::WriteDataType ( EOSDataType  inType)
overridevirtual

Implements IObjectStreamOut.

◆ WriteIdentifier()

void ObjectStreamTextOut::WriteIdentifier ( Identifier  inIdentifier)
overridevirtual

Implements IObjectStreamOut.

◆ WriteName()

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

Implements IObjectStreamOut.

◆ WritePrimitiveData() [1/17]

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

Implements IObjectStreamOut.

◆ WritePrimitiveData() [2/17]

void ObjectStreamTextOut::WritePrimitiveData ( const DMat44 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [3/17]

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

Implements IObjectStreamOut.

◆ WritePrimitiveData() [4/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Double3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [5/17]

void ObjectStreamTextOut::WritePrimitiveData ( const DVec3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [6/17]

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

Implements IObjectStreamOut.

◆ WritePrimitiveData() [7/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Float3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [8/17]

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

Implements IObjectStreamOut.

◆ WritePrimitiveData() [9/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Mat44 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [10/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Quat inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [11/17]

void ObjectStreamTextOut::WritePrimitiveData ( const String inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [12/17]

void ObjectStreamTextOut::WritePrimitiveData ( const uint16 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [13/17]

void ObjectStreamTextOut::WritePrimitiveData ( const uint32 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [14/17]

void ObjectStreamTextOut::WritePrimitiveData ( const uint64 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [15/17]

void ObjectStreamTextOut::WritePrimitiveData ( const uint8 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [16/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Vec3 inPrimitive)
overridevirtual

Implements IObjectStreamOut.

◆ WritePrimitiveData() [17/17]

void ObjectStreamTextOut::WritePrimitiveData ( const Vec4 inPrimitive)
overridevirtual

Implements IObjectStreamOut.


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