cesium-native  0.41.0
Cesium3DTiles::MetadataQuery Class Reference

Convenience functions for querying MetadataEntity instances. More...

#include <Cesium3DTiles/MetadataQuery.h>

Static Public Member Functions

static std::optional< FoundMetadataPropertyfindFirstPropertyWithSemantic (const Schema &schema, const MetadataEntity &entity, const std::string &semantic)
 Gets the first property with a given ClassProperty::semantic. More...
 

Detailed Description

Convenience functions for querying MetadataEntity instances.

Definition at line 55 of file MetadataQuery.h.

Member Function Documentation

◆ findFirstPropertyWithSemantic()

static std::optional<FoundMetadataProperty> Cesium3DTiles::MetadataQuery::findFirstPropertyWithSemantic ( const Schema schema,
const MetadataEntity entity,
const std::string &  semantic 
)
static

Gets the first property with a given ClassProperty::semantic.

Parameters
schemaThe schema to use to look up semantics.
entityThe metadata entity to search for a property with the semantic.
semanticThe semantic to find.
Returns
The details of the found property, or std::nullopt if a property with the given semantic does not exist.

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