QgsVirtualLayerDefinition::SourceLayer class

A SourceLayer is either a reference to a live layer in the registry or all the parameters needed to load it (provider key, source, etc.)

Constructors, destructors, conversion operators

SourceLayer(const QString& name, const QString& ref)
Constructor variant to build a live layer reference.
SourceLayer(const QString& name, const QString& source, const QString& provider, const QString& encoding)
Constructor variant to build a layer with a provider and a source.

Public functions

auto encoding() const -> QString
Optional encoding for the provider.
auto isReferenced() const -> bool
Is it a live layer or not ?
auto name() const -> QString
Name of the layer.
auto provider() const -> QString
Provider key.
auto reference() const -> QString
The reference (id) of the live layer.
auto source() const -> QString
The source url used by the provider to build the layer.