18#ifndef QGSPROCESSINGMODELOUTPUT_H
19#define QGSPROCESSINGMODELOUTPUT_H
33class CORE_EXPORT QgsProcessingModelOutput :
public QgsProcessingModelComponent
39 QgsProcessingModelOutput(
const QString &name = QString(),
const QString &description = QString() );
41 QgsProcessingModelOutput *clone() const override
SIP_FACTORY;
47 QString name()
const {
return mName; }
53 void setName(
const QString &name ) { mName = name; }
60 QVariant defaultValue()
const {
return mDefaultValue; }
67 void setDefaultValue(
const QVariant &value ) { mDefaultValue = value; }
76 bool isMandatory()
const {
return mMandatory; }
85 void setMandatory(
bool mandatory ) { mMandatory = mandatory; }
91 QString childId()
const {
return mChildId; }
97 void setChildId(
const QString &
id ) { mChildId = id; }
103 QString childOutputName()
const {
return mOutputName; }
109 void setChildOutputName(
const QString &name ) { mOutputName = name; }
115 QVariant toVariant()
const;
121 bool loadVariant(
const QVariantMap &map );
123 SIP_SKIP const QgsProcessingModelComment *comment()
const override {
return &mComment; }
124 QgsProcessingModelComment *comment()
override {
return &mComment; }
125 void setComment(
const QgsProcessingModelComment &comment )
override { mComment = comment; }
129 QVariant mDefaultValue;
132 bool mMandatory =
false;
134 QgsProcessingModelComment mComment;