DependencySorter class
Class used to work with layer dependencies stored in a XML project or layer definition file.
Contents
Constructors, destructors, conversion operators
- DependencySorter(const QDomDocument& doc)
- Constructor.
- DependencySorter(const QString& fileName)
- Constructor.
Public functions
- auto hasCycle() const -> bool
- Whether some cyclic dependency has been detected.
- auto hasMissingDependency() const -> bool
- Whether some dependency is missing.
- auto sortedLayerIds() const -> QStringList
- Gets the layer IDs in an order where they can be loaded incrementally without dependency break.
- auto sortedLayerNodes() const -> QVector<QDomNode>
- Gets the layer nodes in an order where they can be loaded incrementally without dependency break.
Function documentation
QgsLayerDefinition:: DependencySorter:: DependencySorter(const QDomDocument& doc)
Constructor.
| Parameters | |
|---|---|
| doc | The XML document containing maplayer elements |
QgsLayerDefinition:: DependencySorter:: DependencySorter(const QString& fileName)
Constructor.
| Parameters | |
|---|---|
| fileName | The filename where the XML document is stored |