]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.h
Add Id tag to all files
[builder.git] / source / sourcefile.h
index 962c575558f8eb04bb79503d946391a302def8f6..a6688d07ff0ce2022abdf5dc2c01a25ae473f29c 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 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
 {
 public:
        SourceFile(Builder &, const Component *, const std::string &);
-       void find_depends();
-       const char *get_type() const { return "SourceFile"; }
+       const StringList &get_includes() const { return includes; }
+       const char       *get_type() const     { return "SourceFile"; }
+       const Component  *get_component() const { return comp; }
+       void             find_depends();
+       Action           *build() { return 0; }
 private:
        const Component *comp;
-       std::list<std::string> includes;
+       StringList      includes;
 };
 
 #endif