Cesium for Unreal 2.15.0
Loading...
Searching...
No Matches
CesiumMetadataValueAccess Class Reference

Grants access to metadata value types that are not currently supported in Blueprints. More...

#include <CesiumMetadataValue.h>

Static Public Member Functions

static uint64 GetUnsignedInteger64 (const FCesiumMetadataValue &Value, uint64 DefaultValue)
 Attempts to retrieve the value as an unsigned 64-bit integer.
 

Detailed Description

Grants access to metadata value types that are not currently supported in Blueprints.

This can be useful in C++ code.

These should be moved to UCesiumMetadataValueBlueprintLibrary if those types become compatible with Blueprints in the future.

Definition at line 871 of file CesiumMetadataValue.h.

Member Function Documentation

◆ GetUnsignedInteger64()

static uint64 CesiumMetadataValueAccess::GetUnsignedInteger64 ( const FCesiumMetadataValue & Value,
uint64 DefaultValue )
static

Attempts to retrieve the value as an unsigned 64-bit integer.

If the value is an integer and between 0 and (2^64 - 1), it is returned as-is.

If the value is a floating-point number in the aforementioned range, it is truncated (rounded toward zero) and returned;

If the value is a boolean, 1 is returned for true and 0 for false.

If the value is a string and the entire string can be parsed as an integer in the valid range, the parsed value is returned. If it can be parsed as a floating-point number, the parsed value is truncated (rounded toward zero). In either case, the string is parsed in a locale-independent way and does not support the use of commas or other delimiters to group digits together.

In all other cases, the default value is returned.

Parameters
DefaultValueThe default value to use if the given value cannot be converted to an uint64.
Returns
The value as an unsigned 64-bit integer.

The documentation for this class was generated from the following file: