QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
DependencySorter (const QString &fileName) | |
Constructor. | |
bool | hasCycle () const |
Whether some cyclic dependency has been detected. | |
bool | hasMissingDependency () const |
Whether some dependency is missing. | |
bool | isLayerDependent (const QString &layerId) const |
Returns whether the layer associated with thelayerId is dependent from another layer. | |
QStringList | sortedLayerIds () const |
Gets the layer IDs in an order where they can be loaded incrementally without dependency break. | |
QVector< QDomNode > | sortedLayerNodes () const |
Gets the layer nodes in an order where they can be loaded incrementally without dependency break. | |
Class used to work with layer dependencies stored in a XML project or layer definition file.
Definition at line 137 of file qgslayerdefinition.h.
|
explicit |
Constructor.
doc | The XML document containing maplayer elements |
Definition at line 529 of file qgslayerdefinition.cpp.
|
explicit |
Constructor.
fileName | The filename where the XML document is stored |
Definition at line 536 of file qgslayerdefinition.cpp.
|
inline |
Whether some cyclic dependency has been detected.
Definition at line 160 of file qgslayerdefinition.h.
|
inline |
Whether some dependency is missing.
Definition at line 163 of file qgslayerdefinition.h.
bool QgsLayerDefinition::DependencySorter::isLayerDependent | ( | const QString & | layerId | ) | const |
Returns whether the layer associated with thelayerId is dependent from another layer.
Definition at line 555 of file qgslayerdefinition.cpp.
|
inline |
Gets the layer IDs in an order where they can be loaded incrementally without dependency break.
Definition at line 157 of file qgslayerdefinition.h.
|
inline |
Gets the layer nodes in an order where they can be loaded incrementally without dependency break.
Definition at line 154 of file qgslayerdefinition.h.