QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsLayerDefinition::DependencySorter Class Reference

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
 Gets the layer IDs in an order where they can be loaded incrementally without dependency break. More...
 
QVector< QDomNode > sortedLayerNodes () const
 Gets the layer nodes in an order where they can be loaded incrementally without dependency break. More...
 

Detailed Description

Class used to work with layer dependencies stored in a XML project or layer definition file.

Definition at line 114 of file qgslayerdefinition.h.

Constructor & Destructor Documentation

◆ DependencySorter() [1/2]

QgsLayerDefinition::DependencySorter::DependencySorter ( const QDomDocument &  doc)

Constructor.

Parameters
docThe XML document containing maplayer elements

Definition at line 506 of file qgslayerdefinition.cpp.

◆ DependencySorter() [2/2]

QgsLayerDefinition::DependencySorter::DependencySorter ( const QString &  fileName)

Constructor.

Parameters
fileNameThe filename where the XML document is stored

Definition at line 513 of file qgslayerdefinition.cpp.

Member Function Documentation

◆ hasCycle()

bool QgsLayerDefinition::DependencySorter::hasCycle ( ) const
inline

Whether some cyclic dependency has been detected.

Definition at line 137 of file qgslayerdefinition.h.

◆ hasMissingDependency()

bool QgsLayerDefinition::DependencySorter::hasMissingDependency ( ) const
inline

Whether some dependency is missing.

Definition at line 140 of file qgslayerdefinition.h.

◆ sortedLayerIds()

QStringList QgsLayerDefinition::DependencySorter::sortedLayerIds ( ) const
inline

Gets the layer IDs in an order where they can be loaded incrementally without dependency break.

Definition at line 134 of file qgslayerdefinition.h.

◆ sortedLayerNodes()

QVector< QDomNode > QgsLayerDefinition::DependencySorter::sortedLayerNodes ( ) const
inline

Gets the layer nodes in an order where they can be loaded incrementally without dependency break.

Definition at line 131 of file qgslayerdefinition.h.


The documentation for this class was generated from the following files: