engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FJsonSerializable结构体 参考abstract

Base class for a JSON serializable object 更多...

#include <JsonSerializerMacros.h>

+ 类 FJsonSerializable 继承关系图:

Public 成员函数

virtual bool FromJson (const FString &Json)
 Serializes the contents of a JSON string into this object 更多...
 
virtual bool FromJson (FString &&Json)
 Serializes the contents of a JSON string into this object 更多...
 
virtual void Serialize (FJsonSerializerBase &Serializer, bool bFlatObject)=0
 Abstract method that needs to be supplied using the macros 更多...
 
virtual const FString ToJson (bool bPrettyPrint=true)
 Serializes this object to its JSON string form 更多...
 
const FString ToJson (bool bPrettyPrint=true) const
 Used to allow serialization of a const ref 更多...
 
virtual ~FJsonSerializable ()
 Virtualize destructor as we provide overridable functions
 

详细描述

Base class for a JSON serializable object

成员函数说明

◆ FromJson() [1/2]

virtual bool FJsonSerializable::FromJson ( const FString &  Json)
inlinevirtual

Serializes the contents of a JSON string into this object

参数
Jsonthe JSON data to serialize from

◆ FromJson() [2/2]

virtual bool FJsonSerializable::FromJson ( FString &&  Json)
inlinevirtual

Serializes the contents of a JSON string into this object

参数
Jsonthe JSON data to serialize from

◆ Serialize()

virtual void FJsonSerializable::Serialize ( FJsonSerializerBase &  Serializer,
bool  bFlatObject 
)
pure virtual

Abstract method that needs to be supplied using the macros

参数
Serializerthe object that will perform serialization in/out of JSON
bFlatObjectif true then no object wrapper is used

在 FJsonDataBag 内被实现.

◆ ToJson() [1/2]

virtual const FString FJsonSerializable::ToJson ( bool  bPrettyPrint = true)
inlinevirtual

Serializes this object to its JSON string form

参数
bPrettyPrint- If true, will use the pretty json formatter
返回
the corresponding json string

◆ ToJson() [2/2]

const FString FJsonSerializable::ToJson ( bool  bPrettyPrint = true) const
inline

Used to allow serialization of a const ref

返回
the corresponding json string

该结构体的文档由以下文件生成: