QGIS API Documentation
3.0.2-Girona (307d082)
|
Class used to work with layer dependencies stored in a XML project or layer definition file. More...
#include <qgslayerdefinition.h>
Public Member Functions | |
DependencySorter (const QDomDocument &doc) | |
Constructor. More... | |
DependencySorter (const QString &fileName) | |
Constructor. More... | |
bool | hasCycle () const |
Whether some cyclic dependency has been detected. More... | |
bool | hasMissingDependency () const |
Whether some dependency is missing. More... | |
QStringList | sortedLayerIds () const |
Get the layer IDs in an order where they can be loaded incrementally without dependency break. More... | |
QVector< QDomNode > | sortedLayerNodes () const |
Get the layer nodes in an order where they can be loaded incrementally without dependency break. More... | |
Class used to work with layer dependencies stored in a XML project or layer definition file.
Definition at line 83 of file qgslayerdefinition.h.
QgsLayerDefinition::DependencySorter::DependencySorter | ( | const QDomDocument & | doc | ) |
Constructor.
doc | The XML document containing maplayer elements |
Definition at line 397 of file qgslayerdefinition.cpp.
QgsLayerDefinition::DependencySorter::DependencySorter | ( | const QString & | fileName | ) |
Constructor.
fileName | The filename where the XML document is stored |
Definition at line 404 of file qgslayerdefinition.cpp.
|
inline |
Whether some cyclic dependency has been detected.
Definition at line 106 of file qgslayerdefinition.h.
|
inline |
Whether some dependency is missing.
Definition at line 109 of file qgslayerdefinition.h.
|
inline |
Get the layer IDs in an order where they can be loaded incrementally without dependency break.
Definition at line 103 of file qgslayerdefinition.h.
|
inline |
Get the layer nodes in an order where they can be loaded incrementally without dependency break.
Definition at line 100 of file qgslayerdefinition.h.