Magnum::OpenDdl::Property class

OpenDDL property.

See Document for more information.

Public functions

auto identifier() const -> Int
Property identifier.
auto isTypeCompatibleWith(PropertyType type) const -> bool
Whether property type is compatible with given type.
template<class T>
auto as() const -> const T&
Property data.
auto asReference() const -> Containers::Optional<Structure>
Reference property data.

Function documentation

Int Magnum::OpenDdl::Property::identifier() const

Property identifier.

template<class T>
const T& Magnum::OpenDdl::Property::as() const

Property data.

The property type must be compatible with desired type.

Containers::Optional<Structure> Magnum::OpenDdl::Property::asReference() const

Reference property data.

The property type must be Type::Reference. Returns referenced structure or Corrade::Containers::NullOpt if the reference is null.