aboutsummaryrefslogtreecommitdiff
path: root/src/targetfile.h
blob: 368e252bea89f7f3d5cb406e58c6215a8c0f54a8 (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
#ifndef TARGET_FILE_H
#define TARGET_FILE_H

#include <stdint.h>
#include <map>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

#include "target.h"

class TargetFile : public Target
{
public:
	TargetFile();
	virtual ~TargetFile();

	virtual void check( Build &bld );
	virtual void clean( Build &bld );

	time_t getTime( class Build &bld, std::string str );
	void updateTime( std::string str );

private:
	std::map<std::string, time_t> mTimes;
};

#endif