You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Dom/JsonObject.h"
|
|
#include "Internationalization/InternationalizationMetadata.h"
|
|
|
|
class LOCALIZATION_API FJsonInternationalizationMetaDataSerializer
|
|
{
|
|
public:
|
|
/**
|
|
* Deserializes manifest metadata from a JSON object.
|
|
*
|
|
* @param InJsonObj The JSON object to serialize from.
|
|
* @param OutMetadataObj The resulting metadata object or null if the serialize is not successful.
|
|
*/
|
|
static void DeserializeMetadata( const TSharedRef< FJsonObject > JsonObj, TSharedPtr< FLocMetadataObject >& OutMetadataObj );
|
|
|
|
/**
|
|
* Serializes manifest metadata object to a JSON object.
|
|
*
|
|
* @param Manifest The Internationalization metadata to serialize.
|
|
* @param OutJsonObj The resulting JSON object or NULL if the serilize is not successful.
|
|
*/
|
|
static void SerializeMetadata( const TSharedRef< FLocMetadataObject > Metadata, TSharedPtr< FJsonObject >& OutJsonObj );
|
|
|
|
/**
|
|
* Utility function that will convert metadata to string using the JSON metadata serializers.
|
|
*
|
|
* @param Manifest The Internationalization metadata to conver to string.
|
|
*/
|
|
static FString MetadataToString( const TSharedPtr<FLocMetadataObject> Metadata );
|
|
};
|