engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FStringTable类 参考

String table implementation. 更多...

#include <StringTableCore.h>

+ 类 FStringTable 继承关系图:

Public 成员函数

void ClearMetaData (const FString &InKey)
 Remove all meta-data associated with the given entry
 
void ClearMetaData (const int32 InSlack=0)
 Clear all meta-data from the table
 
void ClearSourceStrings (const int32 InSlack=0)
 Clear all entries from the table (including their meta-data)
 
void EnumerateMetaData (const FString &InKey, const TFunctionRef< bool(FName, const FString &)> &InEnumerator) const
 Enumerate all meta-data associated with the given entry. 更多...
 
void EnumerateSourceStrings (const TFunctionRef< bool(const FString &, const FString &)> &InEnumerator) const
 Enumerate all source strings in the table. 更多...
 
bool ExportStrings (const FString &InFilename) const
 Export the key, string, and meta-data information in this string table to a CSV file (does not export the namespace)
 
FStringTableEntryConstPtr FindEntry (const FString &InKey) const
 Find the entry with the given key (if any)
 
bool FindKey (const FStringTableEntryConstRef &InEntry, FString &OutKey) const
 Given an entry, check to see if it exists in this table, and if so, get its key
 
bool FindKey (const FTextDisplayStringRef &InDisplayString, FString &OutKey) const
 Given the display string of an entry, check to see if it exists in this table, and if so, get its key
 
 FStringTable ()
 Default constructor
 
FString GetMetaData (const FString &InKey, const FName InMetaDataId) const
 Get the meta-data with the given ID associated with the given entry, or an empty string if not found
 
FString GetNamespace () const
 
UStringTable * GetOwnerAsset () const
 
bool GetSourceString (const FString &InKey, FString &OutSourceString) const
 Get the source string used by the given entry (if any)
 
bool ImportStrings (const FString &InFilename)
 Import key, string, and meta-data information from a CSV file to this string table (does not import the namespace)
 
bool IsLoaded () const
 Has this string table been fully loaded yet? (used during asset loading)
 
void IsLoaded (const bool bInIsLoaded)
 Set whether this string table has been fully loaded yet
 
void RemoveMetaData (const FString &InKey, const FName InMetaDataId)
 Remove the meta-data with the given ID associated with the given entry
 
void RemoveSourceString (const FString &InKey)
 Remove the given entry (including its meta-data)
 
void Serialize (FArchive &Ar)
 Serialize this string table to/from an archive
 
void SetMetaData (const FString &InKey, const FName InMetaDataId, const FString &InMetaDataValue)
 Set the meta-data with the given ID associated with the given entry
 
void SetNamespace (const FString &InNamespace)
 Set the namespace used by all entries in this string table
 
void SetOwnerAsset (UStringTable *InOwnerAsset)
 Set the asset that owns this string table instance (if any)
 
void SetSourceString (const FString &InKey, const FString &InSourceString)
 Set the source string used by the given entry (will replace any existing data for that entry)
 
 ~FStringTable ()
 Destructor
 
- Public 成员函数 继承自 TSharedFromThis< FStringTable, ESPMode::ThreadSafe >
TSharedRef< FStringTable, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FStringTable const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

静态 Public 成员函数

static FStringTableRef NewStringTable ()
 Create a new string table
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< FStringTable, ESPMode::ThreadSafe >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FStringTable, ESPMode::ThreadSafe >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

String table implementation.

Holds Key->SourceString pairs of text.

成员函数说明

◆ EnumerateMetaData()

void FStringTable::EnumerateMetaData ( const FString &  InKey,
const TFunctionRef< bool(FName, const FString &)> &  InEnumerator 
) const

Enumerate all meta-data associated with the given entry.

Return true from the enumerator to continue, or false to stop

◆ EnumerateSourceStrings()

void FStringTable::EnumerateSourceStrings ( const TFunctionRef< bool(const FString &, const FString &)> &  InEnumerator) const

Enumerate all source strings in the table.

Return true from the enumerator to continue, or false to stop

◆ GetNamespace()

FString FStringTable::GetNamespace ( ) const
返回
The namespace used by all entries in this string table

◆ GetOwnerAsset()

UStringTable * FStringTable::GetOwnerAsset ( ) const
返回
The asset that owns this string table instance (if any)

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