UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CEFJSStructDeserializerBackend.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7#if WITH_CEF3
8
10#include "UObject/UnrealType.h"
12#include "CEFJSScripting.h"
13
14#if PLATFORM_WINDOWS
17#endif
18#pragma push_macro("OVERRIDE")
19#undef OVERRIDE // cef headers provide their own OVERRIDE macro
21#if PLATFORM_APPLE
23#endif
24#include "include/cef_values.h"
25#if PLATFORM_APPLE
27#endif
29#pragma pop_macro("OVERRIDE")
30#if PLATFORM_WINDOWS
33#endif
34
35#endif
36
37class FCEFJSScripting;
40class FProperty;
41class UStruct;
42
43#if WITH_CEF3
44
46 : public TSharedFromThis<ICefContainerWalker>
47{
48public:
51 {}
52 virtual ~ICefContainerWalker() {}
53
55 virtual bool ReadProperty(TSharedPtr<FCEFJSScripting> Scripting, FProperty* Property, FProperty* Outer, void* Data, int32 ArrayIndex) = 0;
56
58};
59
61 : public ICefContainerWalker
62{
63public:
66 , List(InList)
67 , Index(-2)
68 {}
69
71 virtual bool ReadProperty(TSharedPtr<FCEFJSScripting> Scripting, FProperty* Property, FProperty* Outer, void* Data, int32 ArrayIndex ) override;
72
74 size_t Index;
75};
76
78 : public ICefContainerWalker
79{
80public:
83 , Dictionary(InDictionary)
84 , Index(-2)
85 {
86 Dictionary->GetKeys(Keys);
87 }
88
90 virtual bool ReadProperty(TSharedPtr<FCEFJSScripting> Scripting, FProperty* Property, FProperty* Outer, void* Data, int32 ArrayIndex ) override;
91
92private:
94 size_t Index;
95 CefDictionaryValue::KeyList Keys;
96};
97
103{
104public:
105
112 : Scripting(InScripting)
115 { }
116
117public:
118
119 // IStructDeserializerBackend interface
120
121 virtual const FString& GetCurrentPropertyName() const override;
122 virtual FString GetDebugString() const override;
123 virtual const FString& GetLastErrorMessage() const override;
125 virtual bool ReadProperty( FProperty* Property, FProperty* Outer, void* Data, int32 ArrayIndex ) override;
126 virtual void SkipArray() override;
127 virtual void SkipStructure() override;
128
129private:
133 FString CurrentPropertyName;
134};
135
136#endif
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
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define THIRD_PARTY_INCLUDES_START
Definition GenericPlatformCompilerPreSetup.h:63
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
EStructDeserializerBackendTokens
Definition IStructDeserializerBackend.h:13
Definition UnrealType.h:174
Definition IStructDeserializerBackend.h:44
virtual void SkipStructure()=0
virtual bool ReadProperty(FProperty *Property, FProperty *Outer, void *Data, int32 ArrayIndex)=0
virtual const FString & GetCurrentPropertyName() const =0
virtual bool GetNextToken(EStructDeserializerBackendTokens &OutToken)=0
virtual void SkipArray()=0
virtual FString GetDebugString() const =0
virtual const FString & GetLastErrorMessage() const =0
Definition SharedPointer.h:1640
Definition SharedPointer.h:692
Definition Class.h:480
@ List
Definition ITypedTableView.h:38
Definition Voronoi.cpp:10
U16 Index
Definition radfft.cpp:71