engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FJsonSerializerWriter< CharType, PrintPolicy > 模板类 参考

Implements the abstract serializer interface hiding the underlying writer object 更多...

#include <JsonSerializerMacros.h>

+ 类 FJsonSerializerWriter< CharType, PrintPolicy > 继承关系图:

Public 成员函数

virtual void EndObject () override
 Completes the definition of an object "}"
 
 FJsonSerializerWriter (TSharedRef< TJsonWriter< CharType, PrintPolicy > > InJsonWriter)
 Initializes the writer object 更多...
 
virtual TSharedPtr< FJsonObject > GetObject () override
 Access to the root object
 
virtual bool IsLoading () const override
 Is the JSON being read from
 
virtual bool IsSaving () const override
 Is the JSON being written to
 
virtual void Serialize (const TCHAR *Name, bool &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, double &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, FDateTime &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, float &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, FString &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, FText &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, int32 &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, int64 &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void Serialize (const TCHAR *Name, uint32 &Value) override
 Writes the field name and the corresponding value to the JSON data 更多...
 
virtual void SerializeArray (const TCHAR *Name, FJsonSerializableArray &Array) override
 Serializes an array of values with an identifier 更多...
 
virtual void SerializeArray (const TCHAR *Name, FJsonSerializableArrayInt &Array) override
 Serializes an array of values with an identifier 更多...
 
virtual void SerializeArray (FJsonSerializableArray &Array) override
 Serializes an array of values 更多...
 
virtual void SerializeMap (const TCHAR *Name, FJsonSerializableKeyValueMap &Map) override
 Serializes the keys & values for map 更多...
 
virtual void SerializeMap (const TCHAR *Name, FJsonSerializableKeyValueMapFloat &Map) override
 Serializes the keys & values for map 更多...
 
virtual void SerializeMap (const TCHAR *Name, FJsonSerializableKeyValueMapInt &Map) override
 Serializes the keys & values for map 更多...
 
virtual void SerializeMap (const TCHAR *Name, FJsonSerializableKeyValueMapInt64 &Map) override
 Serializes the keys & values for map 更多...
 
virtual void SerializeMapSafe (const TCHAR *Name, FJsonSerializableKeyValueMap &Map)
 Serializes keys and values from an object into a map. 更多...
 
virtual void StartObject () override
 Starts a new object "{"
 
virtual void StartObject (const FString &Name) override
 Starts a new object "{"
 

详细描述

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
class FJsonSerializerWriter< CharType, PrintPolicy >

Implements the abstract serializer interface hiding the underlying writer object

构造及析构函数说明

◆ FJsonSerializerWriter()

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
FJsonSerializerWriter< CharType, PrintPolicy >::FJsonSerializerWriter ( TSharedRef< TJsonWriter< CharType, PrintPolicy > >  InJsonWriter)
inline

Initializes the writer object

参数
InJsonWriterthe object to write the JSON output to

成员函数说明

◆ Serialize() [1/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
bool &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [2/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
double &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [3/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
FDateTime &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [4/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
float &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [5/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
FString &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [6/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
FText &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [7/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
int32 &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [8/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
int64 &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ Serialize() [9/9]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::Serialize ( const TCHAR *  Name,
uint32 &  Value 
)
inlineoverridevirtual

Writes the field name and the corresponding value to the JSON data

参数
Namethe field name to write out
Valuethe value to write out

实现了 FJsonSerializerBase.

◆ SerializeArray() [1/3]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeArray ( const TCHAR *  Name,
FJsonSerializableArray &  Array 
)
inlineoverridevirtual

Serializes an array of values with an identifier

参数
Namethe name of the property to serialize
Arraythe array to serialize

实现了 FJsonSerializerBase.

◆ SerializeArray() [2/3]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeArray ( const TCHAR *  Name,
FJsonSerializableArrayInt &  Array 
)
inlineoverridevirtual

Serializes an array of values with an identifier

参数
Namethe name of the property to serialize
Arraythe array to serialize

实现了 FJsonSerializerBase.

◆ SerializeArray() [3/3]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeArray ( FJsonSerializableArray &  Array)
inlineoverridevirtual

Serializes an array of values

参数
Namethe name of the property to serialize
Arraythe array to serialize

实现了 FJsonSerializerBase.

◆ SerializeMap() [1/4]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeMap ( const TCHAR *  Name,
FJsonSerializableKeyValueMap &  Map 
)
inlineoverridevirtual

Serializes the keys & values for map

参数
Namethe name of the property to serialize
Mapthe map to serialize

实现了 FJsonSerializerBase.

◆ SerializeMap() [2/4]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeMap ( const TCHAR *  Name,
FJsonSerializableKeyValueMapFloat &  Map 
)
inlineoverridevirtual

Serializes the keys & values for map

参数
Namethe name of the property to serialize
Mapthe map to serialize

实现了 FJsonSerializerBase.

◆ SerializeMap() [3/4]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeMap ( const TCHAR *  Name,
FJsonSerializableKeyValueMapInt &  Map 
)
inlineoverridevirtual

Serializes the keys & values for map

参数
Namethe name of the property to serialize
Mapthe map to serialize

实现了 FJsonSerializerBase.

◆ SerializeMap() [4/4]

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeMap ( const TCHAR *  Name,
FJsonSerializableKeyValueMapInt64 &  Map 
)
inlineoverridevirtual

Serializes the keys & values for map

参数
Namethe name of the property to serialize
Mapthe map to serialize

实现了 FJsonSerializerBase.

◆ SerializeMapSafe()

template<class CharType = TCHAR, class PrintPolicy = TPrettyJsonPrintPolicy<CharType>>
virtual void FJsonSerializerWriter< CharType, PrintPolicy >::SerializeMapSafe ( const TCHAR *  Name,
FJsonSerializableKeyValueMap &  Map 
)
inlinevirtual

Serializes keys and values from an object into a map.

参数
NameName of property to serialize
MapThe Map to copy String values from

实现了 FJsonSerializerBase.


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