X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.h;h=ec81d2466a896885d5027f97112661a062ab9525;hb=242c55b17e6608b29a77ca17a5b677e202a3ca90;hp=ea6ed05f9efab6bc8d547cd5e0b33799dff549de;hpb=77461a8c0e2b5686b04cf15f3a9333b215813992;p=builder.git diff --git a/source/sourcefile.h b/source/sourcefile.h index ea6ed05..ec81d24 100644 --- a/source/sourcefile.h +++ b/source/sourcefile.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -17,17 +17,18 @@ 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 &); + virtual 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(); + const Component *get_component() const { return comp; } + virtual void find_depends(); private: - const Component *comp; - StringList includes; - - virtual Action *create_action() { return 0; } + virtual Action *create_action() { return 0; } }; #endif