]> git.tdb.fi Git - builder.git/blob - source/filetarget.h
Rework the Target class hierarchy
[builder.git] / source / filetarget.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 FILETARGET_H_
9 #define FILETARGET_H_
10
11 #include <msp/fs/path.h>
12 #include "target.h"
13
14 /**
15 An intermediate base class for targets that represent files.  Almost all target
16 classes are derived from this.
17 */
18 class FileTarget: public Target
19 {
20 protected:
21         Msp::FS::Path path;
22
23         FileTarget(Builder &, const Package *, const Msp::FS::Path &);
24 public:
25         const Msp::FS::Path &get_path() const { return path; }
26 };
27
28 #endif