18#ifndef QGSPROCESSINGMODELRESULT_H
19#define QGSPROCESSINGMODELRESULT_H
57 QVariantMap
inputs()
const {
return mInputs; }
71 QVariantMap
outputs()
const {
return mOutputs; }
85 QString
htmlLog()
const {
return mHtmlLog; }
92 void setHtmlLog(
const QString &log ) { mHtmlLog = log; }
96 return mExecutionStatus == other.mExecutionStatus
97 && mHtmlLog == other.mHtmlLog
98 && mInputs == other.mInputs
99 && mOutputs == other.mOutputs;
103 return !( *
this == other );
110 QVariantMap mOutputs;
144 QMap< QString, QgsProcessingModelChildAlgorithmResult >
childResults()
const {
return mChildResults; }
190 QMap< QString, QgsProcessingModelChildAlgorithmResult > mChildResults;
192 QSet< QString > mExecutedChildren;
193 QVariantMap mRawChildInputs;
194 QVariantMap mRawChildOutputs;
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
@ NotExecuted
Child has not been executed.
void setOutputs(const QVariantMap &outputs)
Sets the outputs generated by child algorithm.
QString htmlLog() const
Returns the HTML formatted contents of logged messages which occurred while running the child.
QgsProcessingModelChildAlgorithmResult()
QVariantMap outputs() const
Returns the outputs generated by the child algorithm.
void setExecutionStatus(Qgis::ProcessingModelChildAlgorithmExecutionStatus status)
Sets the status of executing the child algorithm.
Qgis::ProcessingModelChildAlgorithmExecutionStatus executionStatus() const
Returns the status of executing the child algorithm.
void setInputs(const QVariantMap &inputs)
Sets the inputs used for the child algorithm.
QVariantMap inputs() const
Returns the inputs used for the child algorithm.
void setHtmlLog(const QString &log)
Sets the HTML formatted contents of logged messages which occurred while running the child.
bool operator!=(const QgsProcessingModelChildAlgorithmResult &other) const
bool operator==(const QgsProcessingModelChildAlgorithmResult &other) const
void clear()
Clears any existing results.
QVariantMap & rawChildOutputs()
Returns a reference to the map of raw child algorithm outputs.
void mergeWith(const QgsProcessingModelResult &other)
Merges this set of results with an other set of results.
QSet< QString > executedChildIds() const
Returns the set of child algorithm IDs which were executed during the model execution.
QVariantMap & rawChildInputs()
Returns a reference to the map of raw child algorithm inputs.
QSet< QString > & executedChildIds()
Returns a reference to the set of child algorithm IDs which were executed during the model execution.
QgsProcessingModelResult()
QMap< QString, QgsProcessingModelChildAlgorithmResult > & childResults()
Returns a reference to the map of child algorithm results.
QMap< QString, QgsProcessingModelChildAlgorithmResult > childResults() const
Returns the map of child algorithm results.