aboutsummaryrefslogtreecommitdiff
path: root/src/functiontostring.cpp
blob: 0a7bb4884eed8f3d65749bda813eceec69721dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "functiontostring.h"
#include "plugger.h"

PluginInterface2(toString, FunctionToString, Function, "Mike Buland", 0, 1 );

FunctionToString::FunctionToString()
{
}

FunctionToString::~FunctionToString()
{
}

void FunctionToString::execute( Build *bld, const StringList &lInput, StringList &lOutput )
{
	std::string sOut;

	for( StringList::const_iterator i = lInput.begin(); i != lInput.end(); i++ )
	{
		if( i != lInput.begin() ) sOut += " ";
		sOut += *i;
	}

	lOutput.push_back( sOut );
}

Function *FunctionToString::duplicate( Build &bld, const std::string &cont, VarMap *mExtra )
{
	Function *pRet = new FunctionToString();
	pRet->copyData( this, bld, cont, mExtra );
	return pRet;
}