FManifestUpdateHelper

This is a utility class used to update individual sections of an XML manifest or .plist in raw string form.

Unreal Engine C++ API Reference > Developer > SharedSettingsWidgets

References

   
Module SharedSettingsWidgets
Header /Engine/Source/Developer/SharedSettingsWidgets/Public/ManifestUpdateHelper.h
Include #include "ManifestUpdateHelper.h"

Syntax

class FManifestUpdateHelper  

Remarks

This is a utility class used to update individual sections of an XML manifest or .plist in raw string form. It is formatting sensitive and will fail if things are formatted in an unexpected manner. This is a stopgap measure, and will be replaced using a proper XML parser when it is ready for use.

Constructors

Type Name Description
  FManifestUpdateHelper ( const FString& InFilename )  

Functions

Type Name Description
bool Finalize ( const FString& TargetFilename, bool bShowNotifyOnFailure, FFileHelper::EEncodingOptions Encod... ) Finalizes the updater, and writes it back to the file, returning true if successful, and false if there were any errors.
FText GetFirstErrorMessage () Returns the first error message.
bool HasKey ( const FString& MatchPrefix ) Checks if a key exists matching MatchPrefix.
void ReplaceKey ( const FString& MatchPrefix, const FString& MatchSuffix, const FString& NewInfix ) Replace a key in the manifest (between MatchPrefix and MatchSuffix) with NewInfix.
bool ReplaceStringPortion ( FString& InOutString, const FString& MatchPrefix, const FString& MatchSuffix, const FString& NewInfix ) Replaces the text in InOutString between MatchPrefix and MatchSuffix with NewInfix, returning true if it was found.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library