18#ifndef QGSPROCESSINGMODELOUTPUT_H
19#define QGSPROCESSINGMODELOUTPUT_H
34class CORE_EXPORT QgsProcessingModelOutput :
public QgsProcessingModelComponent
41 QgsProcessingModelOutput(
const QString &name = QString(),
const QString &description = QString() );
43 QgsProcessingModelOutput *clone() const override
SIP_FACTORY;
49 QString name()
const {
return mName; }
55 void setName(
const QString &name ) { mName = name; }
62 QVariant defaultValue()
const {
return mDefaultValue; }
69 void setDefaultValue(
const QVariant &value ) { mDefaultValue = value; }
78 bool isMandatory()
const {
return mMandatory; }
87 void setMandatory(
bool mandatory ) { mMandatory = mandatory; }
93 QString childId()
const {
return mChildId; }
99 void setChildId(
const QString &
id ) { mChildId = id; }
105 QString childOutputName()
const {
return mOutputName; }
111 void setChildOutputName(
const QString &name ) { mOutputName = name; }
117 QVariant toVariant()
const;
123 bool loadVariant(
const QVariantMap &map );
125 SIP_SKIP const QgsProcessingModelComment *comment()
const override {
return &mComment; }
126 QgsProcessingModelComment *comment()
override {
return &mComment; }
127 void setComment(
const QgsProcessingModelComment &comment )
override { mComment = comment; }
132 QVariant mDefaultValue;
135 bool mMandatory =
false;
137 QgsProcessingModelComment mComment;