cesium-native  0.41.0
CesiumGltf::PropertyView< std::string_view > Class Reference

Represents a string metadata property in EXT_structural_metadata. More...

#include <CesiumGltf/PropertyView.h>

Public Member Functions

 PropertyView ()
 Constructs an empty property instance.
 
 PropertyView (const ClassProperty &classProperty)
 Constructs a property instance from a class definition only.
 
PropertyViewStatusType status () const noexcept
 
const std::optional< std::string > & name () const noexcept
 
const std::optional< std::string > & semantic () const noexcept
 
const std::optional< std::string > & description () const noexcept
 
int64_t arrayCount () const noexcept
 
bool normalized () const noexcept
 
std::optional< std::string_view > offset () const noexcept
 
std::optional< std::string_view > scale () const noexcept
 
std::optional< std::string_view > max () const noexcept
 
std::optional< std::string_view > min () const noexcept
 
bool required () const noexcept
 
std::optional< std::string_view > noData () const noexcept
 
std::optional< std::string_view > defaultValue () const noexcept
 

Protected Member Functions

 PropertyView (PropertyViewStatusType status)
 Constructs an invalid instance for an erroneous property. More...
 
 PropertyView (const ClassProperty &classProperty, const PropertyTableProperty &)
 Constructs a property instance from a property table property and its class definition.
 

Protected Attributes

PropertyViewStatusType _status
 

Detailed Description

Represents a string metadata property in EXT_structural_metadata.

Definition at line 1117 of file PropertyView.h.

Constructor & Destructor Documentation

◆ PropertyView()

CesiumGltf::PropertyView< std::string_view >::PropertyView ( PropertyViewStatusType  status)
inlineprotected

Constructs an invalid instance for an erroneous property.

Parameters
statusThe value of PropertyViewStatus indicating the error with the property.

Definition at line 1177 of file PropertyView.h.

Member Function Documentation

◆ arrayCount()

int64_t CesiumGltf::PropertyView< std::string_view >::arrayCount ( ) const
inlinenoexcept

Definition at line 1223 of file PropertyView.h.

◆ defaultValue()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::defaultValue ( ) const
inlinenoexcept

Definition at line 1272 of file PropertyView.h.

◆ description()

const std::optional<std::string>& CesiumGltf::PropertyView< std::string_view >::description ( ) const
inlinenoexcept

Definition at line 1216 of file PropertyView.h.

◆ max()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::max ( ) const
inlinenoexcept

Definition at line 1247 of file PropertyView.h.

◆ min()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::min ( ) const
inlinenoexcept

Definition at line 1252 of file PropertyView.h.

◆ name()

const std::optional<std::string>& CesiumGltf::PropertyView< std::string_view >::name ( ) const
inlinenoexcept

Definition at line 1204 of file PropertyView.h.

◆ noData()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::noData ( ) const
inlinenoexcept

Definition at line 1262 of file PropertyView.h.

◆ normalized()

bool CesiumGltf::PropertyView< std::string_view >::normalized ( ) const
inlinenoexcept

Definition at line 1228 of file PropertyView.h.

◆ offset()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::offset ( ) const
inlinenoexcept

Definition at line 1233 of file PropertyView.h.

◆ required()

bool CesiumGltf::PropertyView< std::string_view >::required ( ) const
inlinenoexcept

Definition at line 1257 of file PropertyView.h.

◆ scale()

std::optional<std::string_view> CesiumGltf::PropertyView< std::string_view >::scale ( ) const
inlinenoexcept

Definition at line 1240 of file PropertyView.h.

◆ semantic()

const std::optional<std::string>& CesiumGltf::PropertyView< std::string_view >::semantic ( ) const
inlinenoexcept

Definition at line 1209 of file PropertyView.h.

◆ status()

PropertyViewStatusType CesiumGltf::PropertyView< std::string_view >::status ( ) const
inlinenoexcept

Definition at line 1199 of file PropertyView.h.


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