Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ObjectStreamTextIn.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
8
10
13{
14public:
16
18 explicit ObjectStreamTextIn(istream &inStream);
19
21 virtual bool ReadDataType(EOSDataType &outType) override;
22 virtual bool ReadName(String &outName) override;
23 virtual bool ReadIdentifier(Identifier &outIdentifier) override;
24 virtual bool ReadCount(uint32 &outCount) override;
25
26 virtual bool ReadPrimitiveData(uint8 &outPrimitive) override;
27 virtual bool ReadPrimitiveData(uint16 &outPrimitive) override;
28 virtual bool ReadPrimitiveData(int &outPrimitive) override;
29 virtual bool ReadPrimitiveData(uint32 &outPrimitive) override;
30 virtual bool ReadPrimitiveData(uint64 &outPrimitive) override;
31 virtual bool ReadPrimitiveData(float &outPrimitive) override;
32 virtual bool ReadPrimitiveData(double &outPrimitive) override;
33 virtual bool ReadPrimitiveData(bool &outPrimitive) override;
34 virtual bool ReadPrimitiveData(String &outPrimitive) override;
35 virtual bool ReadPrimitiveData(Float3 &outPrimitive) override;
36 virtual bool ReadPrimitiveData(Double3 &outPrimitive) override;
37 virtual bool ReadPrimitiveData(Vec3 &outPrimitive) override;
38 virtual bool ReadPrimitiveData(DVec3 &outPrimitive) override;
39 virtual bool ReadPrimitiveData(Vec4 &outPrimitive) override;
40 virtual bool ReadPrimitiveData(Quat &outPrimitive) override;
41 virtual bool ReadPrimitiveData(Mat44 &outPrimitive) override;
42 virtual bool ReadPrimitiveData(DMat44 &outPrimitive) override;
43
44private:
45 bool ReadChar(char &outChar);
46 bool ReadWord(String &outWord);
47};
48
uint32_t uint32
Definition: Core.h:312
#define JPH_NAMESPACE_END
Definition: Core.h:240
uint8_t uint8
Definition: Core.h:310
uint16_t uint16
Definition: Core.h:311
uint64_t uint64
Definition: Core.h:313
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:234
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:29
std::basic_string< char, std::char_traits< char >, STLAllocator< char > > String
Definition: STLAllocator.h:82
EOSDataType
Data type.
Definition: SerializableAttribute.h:15
Holds a 4x4 matrix of floats with the last column consisting of doubles.
Definition: DMat44.h:13
Definition: DVec3.h:14
Class that holds 3 doubles. Used as a storage class. Convert to DVec3 for calculations.
Definition: Double3.h:13
Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.
Definition: Float3.h:13
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition: Mat44.h:13
uint32 Identifier
Identifier for objects.
Definition: ObjectStream.h:30
Definition: ObjectStreamIn.h:21
Implementation of ObjectStream text input stream.
Definition: ObjectStreamTextIn.h:13
virtual bool ReadName(String &outName) override
Definition: ObjectStreamTextIn.cpp:76
virtual bool ReadIdentifier(Identifier &outIdentifier) override
Definition: ObjectStreamTextIn.cpp:81
virtual bool ReadPrimitiveData(uint8 &outPrimitive) override
Definition: ObjectStreamTextIn.cpp:100
virtual bool ReadCount(uint32 &outCount) override
Definition: ObjectStreamTextIn.cpp:95
virtual bool ReadDataType(EOSDataType &outType) override
Definition: ObjectStreamTextIn.cpp:16
Definition: Quat.h:33
Definition: Vec3.h:16
Definition: Vec4.h:14