]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.h
Reorder class members
[builder.git] / source / sourcefile.h
index b1ec8294f578d796ab85f61cb83ea804ebe50b55..ec81d2466a896885d5027f97112661a062ab9525 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef SOURCEFILE_H_
 #define SOURCEFILE_H_
 
 
 class Component;
 
+/**
+Represents a C or C++ source file.
+*/
 class SourceFile: public Target
 {
+private:
+       const Component *comp;
+       StringList includes;
+
 public:
        SourceFile(Builder &, const Component *, const std::string &);
-       const std::list<std::string> &get_includes() const { return includes; }
-       const char *get_type() const { return "SourceFile"; }
-       void find_depends();
-       Action *build() { rebuild=false; return 0; }
+       virtual const char *get_type() const { return "SourceFile"; }
+       const StringList &get_includes() const { return includes; }
+       const Component *get_component() const { return comp; }
+       virtual void find_depends();
 private:
-       const Component *comp;
-       std::list<std::string> includes;
+       virtual Action *create_action() { return 0; }
 };
 
 #endif