18#ifndef QGSPROCESSINGMODELCHILDDEPENDENCY_H
19#define QGSPROCESSINGMODELCHILDDEPENDENCY_H
32class CORE_EXPORT QgsProcessingModelChildDependency
39 QgsProcessingModelChildDependency(
const QString &childId = QString(),
const QString &conditionalBranch = QString() )
41 , conditionalBranch( conditionalBranch )
49 QString conditionalBranch;
55 QVariant toVariant()
const
58 res.insert( QStringLiteral(
"child_id" ), childId );
59 res.insert( QStringLiteral(
"conditional_branch" ), conditionalBranch );
67 bool loadVariant(
const QVariantMap &map )
69 childId = map.value( QStringLiteral(
"child_id" ) ).toString();
70 conditionalBranch = map.value( QStringLiteral(
"conditional_branch" ) ).toString();
75 bool operator==(
const QgsProcessingModelChildDependency &other )
const
77 return childId == other.childId && conditionalBranch == other.conditionalBranch;
80 bool operator!=(
const QgsProcessingModelChildDependency &other )
const
82 return !( *
this == other );
85 bool operator<(
const QgsProcessingModelChildDependency &other )
const
87 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)