FPortableObjectHeader

Class that stores and manipulates PO and POT file header info.

Windows
MacOS
Linux

References

Module

Localization

Header

/Engine/Source/Developer/Localization/Public/PortableObjectFormatDOM.h

Include

#include "PortableObjectFormatDOM.h"

Syntax

class FPortableObjectHeader

Remarks

Class that stores and manipulates PO and POT file header info.

Variables

Name Description

Public variable

TArray< FString...

 

Comments

Stores the header comment block

Public variable

FPOHeaderData

 

HeaderEntries

Stores all the header key/value pairs

Constructors

Name Description

Public function

FPortableObjectHeader()

Functions

Name Description

Public function

void

 

Clear()

Clears the header entries.

Public function

bool

 

FromLocPOEntry

(
    const TSharedRef< const FPortableOb...
)

Parses out header info from a FPortableObjectEntry with an empty ID.

Public function

bool

 

FromString

(
    const FString& InStr
)

Parses out header key/value pair entries.

Public function Const

FString

 

GetEntryValue

(
    const FString& EntryKey
)

Gets the header entry value for the given key or the empty string if the key does not exist

Public function Const

bool

 

HasEntry

(
    const FString& EntryKey
)

Checks if a header entry exists with the given key

Public function

void

 

SetEntryValue

(
    const FString& EntryKey,
    const FString& EntryValue
)

Sets a header entry value

Public function Const

FString

 

ToString()

Creates a string representation of the Portable Object header.

Public function

void

 

UpdateTimeStamp()

Puts the current time into POT-Creation-Date and PO-Revision-Date entries

Typedefs

Name

Description

FPOHeaderData

FPOHeaderEntry

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss