18#ifndef QGSPROCESSINGMODELCHILDPARAMETERSOURCE_H 
   19#define QGSPROCESSINGMODELCHILDPARAMETERSOURCE_H 
   25class QgsProcessingModelAlgorithm;
 
   33class CORE_EXPORT QgsProcessingModelChildParameterSource
 
   41    QgsProcessingModelChildParameterSource() = 
default;
 
   43    bool operator==( 
const QgsProcessingModelChildParameterSource &other ) 
const;
 
   44    bool operator!=( 
const QgsProcessingModelChildParameterSource &other )
 const 
   56    static QgsProcessingModelChildParameterSource fromStaticValue( 
const QVariant &value );
 
   65    static QgsProcessingModelChildParameterSource fromModelParameter( 
const QString ¶meterName );
 
   74    static QgsProcessingModelChildParameterSource fromChildOutput( 
const QString &childId, 
const QString &outputName );
 
   87    static QgsProcessingModelChildParameterSource fromExpression( 
const QString &expression );
 
  101    static QgsProcessingModelChildParameterSource fromExpressionText( 
const QString &text );
 
  119    QVariant staticValue()
 const { 
return mStaticValue; }
 
  131    QString parameterName()
 const { 
return mParameterName; }
 
  144    QString outputChildId()
 const { 
return mChildId; }
 
  158    QString outputName()
 const { 
return mOutputName; }
 
  171    QString expression()
 const { 
return mExpression; }
 
  188    QString expressionText()
 const { 
return mExpressionText; }
 
  205    QVariant toVariant() 
const;
 
  211    bool loadVariant( 
const QVariantMap &map );
 
  231    QString friendlyIdentifier( QgsProcessingModelAlgorithm *model ) 
const;
 
  236    QVariant mStaticValue;
 
  237    QString mParameterName;
 
  241    QString mExpressionText;
 
  246CORE_EXPORT QDataStream &
operator<<( QDataStream &out, 
const QgsProcessingModelChildParameterSource &source );
 
  247CORE_EXPORT QDataStream &
operator>>( QDataStream &in, QgsProcessingModelChildParameterSource &source );
 
  251typedef QList< QgsProcessingModelChildParameterSource > QgsProcessingModelChildParameterSources;
 
ProcessingModelChildParameterSource
Processing model child parameter sources.
 
@ ExpressionText
Parameter value is taken from a text with expressions, evaluated just before the algorithm runs.
 
@ ChildOutput
Parameter value is taken from an output generated by a child algorithm.
 
@ ModelParameter
Parameter value is taken from a parent model parameter.
 
@ StaticValue
Parameter value is a static value.
 
@ Expression
Parameter value is taken from an expression, evaluated just before the algorithm runs.
 
Base class for the definition of processing parameters.
 
PythonOutputType
Available Python output types.
 
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
 
QDataStream & operator<<(QDataStream &out, const QgsFeature &feature)
Writes the feature to stream out. QGIS version compatibility is not guaranteed.
 
QDataStream & operator>>(QDataStream &in, QgsFeature &feature)
Reads a feature from stream in into feature. QGIS version compatibility is not guaranteed.
 
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)