18#ifndef QGSPROCESSINGMODELCHILDDEPENDENCY_H
19#define QGSPROCESSINGMODELCHILDDEPENDENCY_H
26using namespace Qt::StringLiterals;
36class CORE_EXPORT QgsProcessingModelChildDependency
42 QgsProcessingModelChildDependency(
const QString &childId = QString(),
const QString &conditionalBranch = QString() )
44 , conditionalBranch( conditionalBranch )
51 QString conditionalBranch;
57 QVariant toVariant()
const
60 res.insert( u
"child_id"_s, childId );
61 res.insert( u
"conditional_branch"_s, conditionalBranch );
69 bool loadVariant(
const QVariantMap &map )
71 childId = map.value( u
"child_id"_s ).toString();
72 conditionalBranch = map.value( u
"conditional_branch"_s ).toString();
77 bool operator==(
const QgsProcessingModelChildDependency &other )
const {
return childId == other.childId && conditionalBranch == other.conditionalBranch; }
79 bool operator!=(
const QgsProcessingModelChildDependency &other )
const {
return !( *
this == other ); }
81 bool operator<(
const QgsProcessingModelChildDependency &other )
const {
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)