UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
JsonStructDeserializerBackend.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "HAL/Platform.h"
12
13class FArchive;
14class FProperty;
15
26{
27public:
28
35 : JsonReader(TJsonReader<WIDECHAR>::Create(&Archive))
36 { }
37
38public:
39
40 // IStructDeserializerBackend interface
41
42 SERIALIZATION_API virtual const FString& GetCurrentPropertyName() const override;
43 SERIALIZATION_API virtual FString GetDebugString() const override;
44 SERIALIZATION_API virtual const FString& GetLastErrorMessage() const override;
46 SERIALIZATION_API virtual bool ReadProperty( FProperty* Property, FProperty* Outer, void* Data, int32 ArrayIndex ) override;
47 SERIALIZATION_API virtual void SkipArray() override;
48 SERIALIZATION_API virtual void SkipStructure() override;
49
50protected:
52 {
53 return LastIdentifier;
54 }
55
57 {
58 return LastNotation;
59 }
60
62 {
63 return JsonReader;
64 }
65
66private:
67
69 FString LastIdentifier;
70
72 EJsonNotation LastNotation;
73
76};
FPlatformTypes::WIDECHAR WIDECHAR
A wide character. Normally a signed type.
Definition Platform.h:1133
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EStructDeserializerBackendTokens
Definition IStructDeserializerBackend.h:13
EJsonNotation
Definition JsonTypes.h:60
Definition Archive.h:1208
Definition JsonStructDeserializerBackend.h:26
virtual SERIALIZATION_API void SkipArray() override
Definition JsonStructDeserializerBackend.cpp:295
EJsonNotation GetLastNotation()
Definition JsonStructDeserializerBackend.h:56
virtual SERIALIZATION_API bool GetNextToken(EStructDeserializerBackendTokens &OutToken) override
Definition JsonStructDeserializerBackend.cpp:31
virtual SERIALIZATION_API const FString & GetLastErrorMessage() const override
Definition JsonStructDeserializerBackend.cpp:25
FJsonStructDeserializerBackend(FArchive &Archive)
Definition JsonStructDeserializerBackend.h:34
virtual SERIALIZATION_API bool ReadProperty(FProperty *Property, FProperty *Outer, void *Data, int32 ArrayIndex) override
Definition JsonStructDeserializerBackend.cpp:77
virtual SERIALIZATION_API FString GetDebugString() const override
Definition JsonStructDeserializerBackend.cpp:19
FString & GetLastIdentifier()
Definition JsonStructDeserializerBackend.h:51
TSharedRef< TJsonReader< WIDECHAR > > & GetReader()
Definition JsonStructDeserializerBackend.h:61
virtual SERIALIZATION_API void SkipStructure() override
Definition JsonStructDeserializerBackend.cpp:301
virtual SERIALIZATION_API const FString & GetCurrentPropertyName() const override
Definition JsonStructDeserializerBackend.cpp:13
Definition UnrealType.h:174
Definition IStructDeserializerBackend.h:44
Definition JsonReader.h:41
Definition SharedPointer.h:153