|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
Handles sorting of 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. | |
Handles sorting of dependencies stored in a XML project or layer definition file.
Definition at line 151 of file qgslayerdefinition.h.
|
explicit |
Constructor.
| doc | The XML document containing maplayer elements |
Definition at line 539 of file qgslayerdefinition.cpp.
|
explicit |
Constructor.
| fileName | The filename where the XML document is stored |
Definition at line 546 of file qgslayerdefinition.cpp.
|
inline |
Whether some cyclic dependency has been detected.
Definition at line 173 of file qgslayerdefinition.h.
|
inline |
Whether some dependency is missing.
Definition at line 176 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 565 of file qgslayerdefinition.cpp.
|
inline |
Gets the layer IDs in an order where they can be loaded incrementally without dependency break.
Definition at line 170 of file qgslayerdefinition.h.
|
inline |
Gets the layer nodes in an order where they can be loaded incrementally without dependency break.
Definition at line 167 of file qgslayerdefinition.h.