aboutsummaryrefslogtreecommitdiff
path: root/src/function.h
blob: 7035d2f3d0569b604a361a76c73acbfd2a8ed1b2 (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 std::string &cont, VarMap *mExtra ) = 0;
	void copyData( Function *pSrc, Build &bld, const std::string &cont, VarMap *mExtra );

protected:
	StringList lParams;

};

#endif