aboutsummaryrefslogtreecommitdiff
path: root/src/stringproc.h
blob: 860579f2ff88cc144e9ef08b7f3622b6c503e001 (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
#ifndef STRING_PROC_H
#define STRING_PROC_H

#include <stdint.h>
#include <string>
#include <map>

class Build;

typedef std::map<std::string,std::string> VarMap;

class StringProc
{
public:
	StringProc( Build *pBld );
	virtual ~StringProc();

	virtual std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra )=0;

protected:
	Build *getBuild()
	{
		return pBld;
	}

private:
	Build *pBld;

};

#endif