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

A LocMetadata Object is a structure holding an unordered set of name/value pairs. 更多...

#include <InternationalizationMetadata.h>

Public 成员函数

 FLocMetadataObject (const FLocMetadataObject &Other)
 Copy ctor
 
TArray< TSharedPtr< FLocMetadataValue > > GetArrayField (const FString &FieldName)
 Get the field named FieldName as an array. 更多...
 
bool GetBoolField (const FString &FieldName)
 Get the field named FieldName as a boolean. 更多...
 
TSharedPtr< FLocMetadataObject > GetObjectField (const FString &FieldName)
 Get the field named FieldName as a LocMetadata object. 更多...
 
FString GetStringField (const FString &FieldName)
 Get the field named FieldName as a string. 更多...
 
bool HasField (const FString &FieldName)
 Checks to see if the FieldName exists in the object.
 
template<ELocMetadataType LocMetadataType>
bool HasTypedField (const FString &FieldName)
 Checks to see if the FieldName exists in the object, and has the specified type.
 
bool IsExactMatch (const FLocMetadataObject &Other) const
 Similar functionality to == operator but ensures everything matches(ignores COMPARISON_MODIFIER_PREFIX).
 
void SetArrayField (const FString &FieldName, const TArray< TSharedPtr< FLocMetadataValue > > &Array)
 Set an array field named FieldName and value of Array
 
void SetBoolField (const FString &FieldName, bool InValue)
 Set a boolean field named FieldName and value of InValue
 
void SetObjectField (const FString &FieldName, const TSharedPtr< FLocMetadataObject > &LocMetadataObject)
 Set an ObjectField named FieldName and value of LocMetadataObject
 
void SetStringField (const FString &FieldName, const FString &StringValue)
 Add a field named FieldName with value of StringValue
 

Public 属性

TMap< FString, TSharedPtr< FLocMetadataValue > > Values
 Stores the name/value pairs for the metadata object
 

静态 Public 属性

static const TCHAR * COMPARISON_MODIFIER_PREFIX
 Special reserved character. 更多...
 

详细描述

A LocMetadata Object is a structure holding an unordered set of name/value pairs.

成员函数说明

◆ GetArrayField()

TArray< TSharedPtr< FLocMetadataValue > > FLocMetadataObject::GetArrayField ( const FString &  FieldName)

Get the field named FieldName as an array.

Ensures that the field is present and is of type LocMetadata Array.

◆ GetBoolField()

bool FLocMetadataObject::GetBoolField ( const FString &  FieldName)

Get the field named FieldName as a boolean.

Ensures that the field is present and is of type LocMetadata boolean.

◆ GetObjectField()

TSharedPtr< FLocMetadataObject > FLocMetadataObject::GetObjectField ( const FString &  FieldName)

Get the field named FieldName as a LocMetadata object.

Ensures that the field is present and is a LocMetadata object

◆ GetStringField()

FString FLocMetadataObject::GetStringField ( const FString &  FieldName)

Get the field named FieldName as a string.

Ensures that the field is present and is of type LocMetadata string.

类成员变量说明

◆ COMPARISON_MODIFIER_PREFIX

const TCHAR* FLocMetadataObject::COMPARISON_MODIFIER_PREFIX
static

Special reserved character.

When encountered as a prefix metadata name(the key in the Values map), it will adjust the way comparisons are done.


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