QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
A HTML file output for processing algorithms. More...
#include <qgsprocessingoutputs.h>
Public Member Functions | |
QgsProcessingOutputHtml (const QString &name, const QString &description=QString()) | |
Constructor for QgsProcessingOutputHtml. | |
QString | type () const override |
Unique output type name. | |
QString | valueAsFormattedString (const QVariant &value, QgsProcessingContext &context, bool &ok) const override |
Returns a HTML string version of the parameter output value (if possible). | |
Public Member Functions inherited from QgsProcessingOutputDefinition | |
QgsProcessingOutputDefinition (const QString &name, const QString &description=QString()) | |
Constructor for QgsProcessingOutputDefinition. | |
virtual | ~QgsProcessingOutputDefinition ()=default |
bool | autoCreated () const |
Returns true if the output was automatically created when adding a parameter. | |
QString | description () const |
Returns the description for the output. | |
QString | name () const |
Returns the name of the output. | |
void | setAutoCreated (bool autoCreated) |
Sets whether an output was automatically created when adding a parameter. | |
void | setDescription (const QString &description) |
Sets the description for the output. | |
void | setName (const QString &name) |
Sets the name of the output. | |
virtual QString | valueAsString (const QVariant &value, QgsProcessingContext &context, bool &ok) const |
Returns a string version of the parameter output value (if possible). | |
Static Public Member Functions | |
static QString | typeName () |
Returns the type name for the output class. | |
Additional Inherited Members | |
Protected Attributes inherited from QgsProcessingOutputDefinition | |
bool | mAutoCreated = false |
QString | mDescription |
Output description. | |
QString | mName |
Output name. | |
A HTML file output for processing algorithms.
Definition at line 322 of file qgsprocessingoutputs.h.
QgsProcessingOutputHtml::QgsProcessingOutputHtml | ( | const QString & | name, |
const QString & | description = QString() |
||
) |
Constructor for QgsProcessingOutputHtml.
Definition at line 78 of file qgsprocessingoutputs.cpp.
|
inlineoverridevirtual |
Unique output type name.
Implements QgsProcessingOutputDefinition.
Definition at line 335 of file qgsprocessingoutputs.h.
|
inlinestatic |
Returns the type name for the output class.
Definition at line 334 of file qgsprocessingoutputs.h.
|
overridevirtual |
Returns a HTML string version of the parameter output value (if possible).
By default this will return the same value as valueAsString().
value | value to convert |
context | processing context |
ok | will be set to true if value could be represented as a string. |
Reimplemented from QgsProcessingOutputDefinition.
Definition at line 82 of file qgsprocessingoutputs.cpp.