]> git.tdb.fi Git - builder.git/blob - source/datafile.h
d76671c2eab7f8afae5f18e4ccd3fe78e9de1d5a
[builder.git] / source / datafile.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef DATAFILE_H_
9 #define DATAFILE_H_
10
11 #include "filetarget.h"
12
13 class Component;
14 class File;
15
16 class DataFile: public FileTarget
17 {
18 private:
19         const Component &component;
20         File &source;
21
22 public:
23         DataFile(Builder &, const Component &, File &);
24
25         virtual const char *get_type() const { return "DataFile"; }
26         const Component &get_component() const { return component; }
27         File &get_source() const { return source; }
28
29 private:
30         virtual Action *create_action();
31         static Msp::FS::Path generate_target_path(const Component &);
32 };
33
34 #endif