18#ifndef QGSPROCESSINGMODELOUTPUT_H
19#define QGSPROCESSINGMODELOUTPUT_H
33class CORE_EXPORT QgsProcessingModelOutput :
public QgsProcessingModelComponent
40 QgsProcessingModelOutput(
const QString &name = QString(),
const QString &description = QString() );
42 QgsProcessingModelOutput *clone() const override
SIP_FACTORY;
48 QString name()
const {
return mName; }
54 void setName(
const QString &name ) { mName = name; }
61 QVariant defaultValue()
const {
return mDefaultValue; }
68 void setDefaultValue(
const QVariant &value ) { mDefaultValue = value; }
77 bool isMandatory()
const {
return mMandatory; }
86 void setMandatory(
bool mandatory ) { mMandatory = mandatory; }
92 QString childId()
const {
return mChildId; }
98 void setChildId(
const QString &
id ) { mChildId = id; }
104 QString childOutputName()
const {
return mOutputName; }
110 void setChildOutputName(
const QString &name ) { mOutputName = name; }
116 QVariant toVariant()
const;
122 bool loadVariant(
const QVariantMap &map );
124 SIP_SKIP const QgsProcessingModelComment *comment()
const override {
return &mComment; }
125 QgsProcessingModelComment *comment()
override {
return &mComment; }
126 void setComment(
const QgsProcessingModelComment &comment )
override { mComment = comment; }
131 QVariant mDefaultValue;
134 bool mMandatory =
false;
136 QgsProcessingModelComment mComment;