]> git.tdb.fi Git - builder.git/blob - source/sourcefile.h
Reorder class members
[builder.git] / source / sourcefile.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef SOURCEFILE_H_
9 #define SOURCEFILE_H_
10
11 #include "target.h"
12
13 class Component;
14
15 /**
16 Represents a C or C++ source file.
17 */
18 class SourceFile: public Target
19 {
20 private:
21         const Component *comp;
22         StringList includes;
23
24 public:
25         SourceFile(Builder &, const Component *, const std::string &);
26         virtual const char *get_type() const { return "SourceFile"; }
27         const StringList &get_includes() const { return includes; }
28         const Component *get_component() const { return comp; }
29         virtual void find_depends();
30 private:
31         virtual Action *create_action() { return 0; }
32 };
33
34 #endif