18#ifndef QGSPROCESSINGMODELCHILDDEPENDENCY_H
19#define QGSPROCESSINGMODELCHILDDEPENDENCY_H
26using namespace Qt::StringLiterals;
36class CORE_EXPORT QgsProcessingModelChildDependency
43 QgsProcessingModelChildDependency(
const QString &childId = QString(),
const QString &conditionalBranch = QString() )
45 , conditionalBranch( conditionalBranch )
53 QString conditionalBranch;
59 QVariant toVariant()
const
62 res.insert( u
"child_id"_s, childId );
63 res.insert( u
"conditional_branch"_s, conditionalBranch );
71 bool loadVariant(
const QVariantMap &map )
73 childId = map.value( u
"child_id"_s ).toString();
74 conditionalBranch = map.value( u
"conditional_branch"_s ).toString();
79 bool operator==(
const QgsProcessingModelChildDependency &other )
const
81 return childId == other.childId && conditionalBranch == other.conditionalBranch;
84 bool operator!=(
const QgsProcessingModelChildDependency &other )
const
86 return !( *
this == other );
89 bool operator<(
const QgsProcessingModelChildDependency &other )
const
91 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)