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.
| 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.
| 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.
| 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
Get the field named FieldName as a string.
Ensures that the field is present and is of type LocMetadata string.
|
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.