22 QString QgsStringConcatenationAlgorithm::name()
const 24 return QStringLiteral(
"stringconcatenation" );
27 QgsProcessingAlgorithm::Flags QgsStringConcatenationAlgorithm::flags()
const 29 return FlagHideFromToolbox;
32 QString QgsStringConcatenationAlgorithm::displayName()
const 34 return QObject::tr(
"String concatenation" );
37 QStringList QgsStringConcatenationAlgorithm::tags()
const 39 return QObject::tr(
"string,concatenation,merge" ).split(
',' );
42 QString QgsStringConcatenationAlgorithm::group()
const 44 return QObject::tr(
"Modeler tools" );
47 QString QgsStringConcatenationAlgorithm::groupId()
const 49 return QStringLiteral(
"modelertools" );
52 QString QgsStringConcatenationAlgorithm::shortHelpString()
const 54 return QObject::tr(
"This algorithm concatenates two strings together." );
57 QgsStringConcatenationAlgorithm *QgsStringConcatenationAlgorithm::createInstance()
const 59 return new QgsStringConcatenationAlgorithm();
62 void QgsStringConcatenationAlgorithm::initAlgorithm(
const QVariantMap & )
71 QString input_1 = parameterAsString( parameters, QStringLiteral(
"INPUT_1" ), context );
72 QString input_2 = parameterAsString( parameters, QStringLiteral(
"INPUT_2" ), context );
75 outputs.insert( QStringLiteral(
"CONCATENATION" ), input_1 + input_2 );
Base class for providing feedback from a processing algorithm.
A string output for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
A string parameter for processing algorithms.