22QString QgsStringConcatenationAlgorithm::name()
const
24 return QStringLiteral(
"stringconcatenation" );
32QString QgsStringConcatenationAlgorithm::displayName()
const
34 return QObject::tr(
"String concatenation" );
37QStringList QgsStringConcatenationAlgorithm::tags()
const
39 return QObject::tr(
"string,concatenation,merge" ).split(
',' );
42QString QgsStringConcatenationAlgorithm::group()
const
44 return QObject::tr(
"Modeler tools" );
47QString QgsStringConcatenationAlgorithm::groupId()
const
49 return QStringLiteral(
"modelertools" );
52QString QgsStringConcatenationAlgorithm::shortHelpString()
const
54 return QObject::tr(
"This algorithm concatenates two strings together." );
57QgsStringConcatenationAlgorithm *QgsStringConcatenationAlgorithm::createInstance()
const
59 return new QgsStringConcatenationAlgorithm();
62void QgsStringConcatenationAlgorithm::initAlgorithm(
const QVariantMap & )
71 const QString input_1 = parameterAsString( parameters, QStringLiteral(
"INPUT_1" ), context );
72 const QString input_2 = parameterAsString( parameters, QStringLiteral(
"INPUT_2" ), context );
75 outputs.insert( QStringLiteral(
"CONCATENATION" ), QString( input_1 + input_2 ) );
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
@ HideFromToolbox
Algorithm should be hidden from the toolbox.
@ SkipGenericModelLogging
When running as part of a model, the generic algorithm setup and results logging should be skipped.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
A string output for processing algorithms.
A string parameter for processing algorithms.