engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FJsonStructDeserializerBackend类 参考

Implements a reader for UStruct deserialization using Json. 更多...

#include <JsonStructDeserializerBackend.h>

+ 类 FJsonStructDeserializerBackend 继承关系图:

Public 成员函数

 FJsonStructDeserializerBackend (FArchive &Archive)
 Creates and initializes a new instance. 更多...
 
virtual const FString & GetCurrentPropertyName () const override
 Gets the identifier of the current field. 更多...
 
virtual FString GetDebugString () const override
 Gets a debug string for the reader's current state. 更多...
 
virtual const FString & GetLastErrorMessage () const override
 Gets the last error message. 更多...
 
virtual bool GetNextToken (EStructDeserializerBackendTokens &OutToken) override
 Reads the next token from the stream. 更多...
 
virtual bool ReadProperty (FProperty *Property, FProperty *Outer, void *Data, int32 ArrayIndex) override
 Reads the specified property from the stream. 更多...
 
virtual void SkipArray () override
 Skips the array that is currently being read from the stream.
 
virtual void SkipStructure () override
 Skips the object that is currently being read from the stream.
 
- Public 成员函数 继承自 IStructDeserializerBackend
virtual const FString & GetCurrentPropertyName () const =0
 Gets the identifier of the current field. 更多...
 
virtual FString GetDebugString () const =0
 Gets a debug string for the reader's current state. 更多...
 
virtual const FString & GetLastErrorMessage () const =0
 Gets the last error message. 更多...
 
virtual bool GetNextToken (EStructDeserializerBackendTokens &OutToken)=0
 Reads the next token from the stream. 更多...
 
virtual bool ReadProperty (FProperty *Property, FProperty *Outer, void *Data, int32 ArrayIndex)=0
 Reads the specified property from the stream. 更多...
 
virtual void SkipArray ()=0
 Skips the array that is currently being read from the stream.
 
virtual void SkipStructure ()=0
 Skips the object that is currently being read from the stream.
 
virtual ~IStructDeserializerBackend ()
 Virtual destructor.
 

详细描述

Implements a reader for UStruct deserialization using Json.

Note: The underlying Json de-serializer is currently hard-coded to use UCS2CHAR. This is because the current JsonReader API does not allow writers to be substituted since it's all based on templates. At some point we will refactor the low-level Json API to provide more flexibility for serialization.

构造及析构函数说明

◆ FJsonStructDeserializerBackend()

FJsonStructDeserializerBackend::FJsonStructDeserializerBackend ( FArchive &  Archive)
inline

Creates and initializes a new instance.

参数
ArchiveThe archive to deserialize from.

成员函数说明

◆ GetCurrentPropertyName()

virtual const FString & FJsonStructDeserializerBackend::GetCurrentPropertyName ( ) const
overridevirtual

Gets the identifier of the current field.

返回
The field's name.

实现了 IStructDeserializerBackend.

◆ GetDebugString()

virtual FString FJsonStructDeserializerBackend::GetDebugString ( ) const
overridevirtual

Gets a debug string for the reader's current state.

The returned string contains debug information that is relevant to the reader's serialization format. For example, it could be a line and column number for text based formats, or a byte offset for binary serialization formats.

返回
The debug string.

实现了 IStructDeserializerBackend.

◆ GetLastErrorMessage()

virtual const FString & FJsonStructDeserializerBackend::GetLastErrorMessage ( ) const
overridevirtual

Gets the last error message.

返回
Error message.

实现了 IStructDeserializerBackend.

◆ GetNextToken()

virtual bool FJsonStructDeserializerBackend::GetNextToken ( EStructDeserializerBackendTokens &  OutToken)
overridevirtual

Reads the next token from the stream.

参数
OutTokenWill contain the read token, if any.
返回
true if a token was read, false otherwise.

实现了 IStructDeserializerBackend.

◆ ReadProperty()

virtual bool FJsonStructDeserializerBackend::ReadProperty ( FProperty *  Property,
FProperty *  Outer,
void *  Data,
int32  ArrayIndex 
)
overridevirtual

Reads the specified property from the stream.

参数
PropertyThe property to read into.
OuterThe outer property holding the property to read (in case of arrays).
DataThe buffer that will hold the read data.
ArrayIndexAn index into the property array (for static arrays).
返回
true on success, false otherwise.

实现了 IStructDeserializerBackend.


该类的文档由以下文件生成: