Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ObjectStreamTextOut.h
Go to the documentation of this file.
1
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3
// SPDX-License-Identifier: MIT
4
5
#pragma once
6
7
#include <
Jolt/ObjectStream/ObjectStreamOut.h
>
8
9
#ifdef JPH_OBJECT_STREAM
10
11
JPH_NAMESPACE_BEGIN
12
14
class
JPH_EXPORT
ObjectStreamTextOut
:
public
ObjectStreamOut
15
{
16
public
:
17
JPH_OVERRIDE_NEW_DELETE
18
20
explicit
ObjectStreamTextOut
(ostream &inStream);
21
23
virtual
void
WriteDataType
(
EOSDataType
inType)
override
;
24
virtual
void
WriteName
(
const
char
*inName)
override
;
25
virtual
void
WriteIdentifier
(
Identifier
inIdentifier)
override
;
26
virtual
void
WriteCount
(
uint32
inCount)
override
;
27
28
virtual
void
WritePrimitiveData
(
const
uint8
&inPrimitive)
override
;
29
virtual
void
WritePrimitiveData
(
const
uint16
&inPrimitive)
override
;
30
virtual
void
WritePrimitiveData
(
const
int
&inPrimitive)
override
;
31
virtual
void
WritePrimitiveData
(
const
uint32
&inPrimitive)
override
;
32
virtual
void
WritePrimitiveData
(
const
uint64
&inPrimitive)
override
;
33
virtual
void
WritePrimitiveData
(
const
float
&inPrimitive)
override
;
34
virtual
void
WritePrimitiveData
(
const
double
&inPrimitive)
override
;
35
virtual
void
WritePrimitiveData
(
const
bool
&inPrimitive)
override
;
36
virtual
void
WritePrimitiveData
(
const
String
&inPrimitive)
override
;
37
virtual
void
WritePrimitiveData
(
const
Float3
&inPrimitive)
override
;
38
virtual
void
WritePrimitiveData
(
const
Double3
&inPrimitive)
override
;
39
virtual
void
WritePrimitiveData
(
const
Vec3
&inPrimitive)
override
;
40
virtual
void
WritePrimitiveData
(
const
DVec3
&inPrimitive)
override
;
41
virtual
void
WritePrimitiveData
(
const
Vec4
&inPrimitive)
override
;
42
virtual
void
WritePrimitiveData
(
const
Quat
&inPrimitive)
override
;
43
virtual
void
WritePrimitiveData
(
const
Mat44
&inPrimitive)
override
;
44
virtual
void
WritePrimitiveData
(
const
DMat44
&inPrimitive)
override
;
45
47
virtual
void
HintNextItem
()
override
;
48
virtual
void
HintIndentUp
()
override
;
49
virtual
void
HintIndentDown
()
override
;
50
51
private
:
52
void
WriteChar(
char
inChar);
53
void
WriteWord(
const
string_view &inWord);
54
55
int
mIndentation = 0;
56
};
57
58
JPH_NAMESPACE_END
59
60
#endif
// JPH_OBJECT_STREAM
uint8
std::uint8_t uint8
Definition
Core.h:482
JPH_EXPORT
#define JPH_EXPORT
Definition
Core.h:271
uint64
std::uint64_t uint64
Definition
Core.h:485
JPH_NAMESPACE_END
#define JPH_NAMESPACE_END
Definition
Core.h:414
uint32
std::uint32_t uint32
Definition
Core.h:484
JPH_NAMESPACE_BEGIN
#define JPH_NAMESPACE_BEGIN
Definition
Core.h:408
uint16
std::uint16_t uint16
Definition
Core.h:483
JPH_OVERRIDE_NEW_DELETE
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition
Memory.h:31
ObjectStreamOut.h
String
std::basic_string< char, std::char_traits< char >, STLAllocator< char > > String
Definition
STLAllocator.h:107
EOSDataType
EOSDataType
Data type.
Definition
SerializableAttribute.h:17
DMat44
Holds a 4x4 matrix of floats with the last column consisting of doubles.
Definition
DMat44.h:13
DVec3
Definition
DVec3.h:14
Double3
Class that holds 3 doubles. Used as a storage class. Convert to DVec3 for calculations.
Definition
Double3.h:13
Float3
Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.
Definition
Float3.h:13
IObjectStreamOut::WritePrimitiveData
virtual void WritePrimitiveData(const uint8 &inPrimitive)=0
IObjectStreamOut::WriteIdentifier
virtual void WriteIdentifier(Identifier inIdentifier)=0
IObjectStreamOut::WriteDataType
virtual void WriteDataType(EOSDataType inType)=0
IObjectStreamOut::WriteCount
virtual void WriteCount(uint32 inCount)=0
IObjectStreamOut::WriteName
virtual void WriteName(const char *inName)=0
IObjectStreamOut::HintNextItem
virtual void HintNextItem()
Definition
ObjectStream.h:108
IObjectStreamOut::HintIndentUp
virtual void HintIndentUp()
Definition
ObjectStream.h:109
IObjectStreamOut::HintIndentDown
virtual void HintIndentDown()
Definition
ObjectStream.h:110
Mat44
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition
Mat44.h:13
ObjectStream::Identifier
uint32 Identifier
Identifier for objects.
Definition
ObjectStream.h:33
ObjectStreamOut
Definition
ObjectStreamOut.h:23
ObjectStreamTextOut
Implementation of ObjectStream text output stream.
Definition
ObjectStreamTextOut.h:15
Quat
Definition
Quat.h:33
Vec3
Definition
Vec3.h:17
Vec4
Definition
Vec4.h:14
Jolt
ObjectStream
ObjectStreamTextOut.h
Generated by
1.9.8