aboutsummaryrefslogtreecommitdiff
path: root/src/function.h
blob: af0d3fc6c929daf1b7f901128b5b811cc3a0bc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef FUNCTION_H
#define FUNCTION_H

#include <stdint.h>
#include "build.h"

class Function
{
public:
	Function();
	virtual ~Function();

	void addParam( const char *str );
	virtual void execute( Build *bld, const StringList &lInput, StringList &lOutput )=0;
	virtual Function *duplicate( Build &bld, const StringList *cont, VarMap *mExtra ) = 0;
	void copyData( Function *pSrc, Build &bld, const StringList *cont, VarMap *mExtra );

protected:
	StringList lParams;

};

#endif