18#ifndef QGSPROCESSINGMODELCHILDDEPENDENCY_H
19#define QGSPROCESSINGMODELCHILDDEPENDENCY_H
33class CORE_EXPORT QgsProcessingModelChildDependency
40 QgsProcessingModelChildDependency(
const QString &childId = QString(),
const QString &conditionalBranch = QString() )
42 , conditionalBranch( conditionalBranch )
50 QString conditionalBranch;
56 QVariant toVariant()
const
59 res.insert( QStringLiteral(
"child_id" ), childId );
60 res.insert( QStringLiteral(
"conditional_branch" ), conditionalBranch );
68 bool loadVariant(
const QVariantMap &map )
70 childId = map.value( QStringLiteral(
"child_id" ) ).toString();
71 conditionalBranch = map.value( QStringLiteral(
"conditional_branch" ) ).toString();
76 bool operator==(
const QgsProcessingModelChildDependency &other )
const
78 return childId == other.childId && conditionalBranch == other.conditionalBranch;
81 bool operator!=(
const QgsProcessingModelChildDependency &other )
const
83 return !( *
this == other );
86 bool operator<(
const QgsProcessingModelChildDependency &other )
const
88 return childId == other.childId ? conditionalBranch < other.conditionalBranch : childId < other.childId;
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)