|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
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 115 of file qgslayerdefinition.h.
|
explicit |
Constructor.
| doc | The XML document containing maplayer elements |
Definition at line 512 of file qgslayerdefinition.cpp.
|
explicit |
Constructor.
| fileName | The filename where the XML document is stored |
Definition at line 519 of file qgslayerdefinition.cpp.
|
inline |
Whether some cyclic dependency has been detected.
Definition at line 138 of file qgslayerdefinition.h.
|
inline |
Whether some dependency is missing.
Definition at line 141 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 538 of file qgslayerdefinition.cpp.
|
inline |
Gets the layer IDs in an order where they can be loaded incrementally without dependency break.
Definition at line 135 of file qgslayerdefinition.h.
|
inline |
Gets the layer nodes in an order where they can be loaded incrementally without dependency break.
Definition at line 132 of file qgslayerdefinition.h.