X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcsourcefile.h;h=c57654a4cd6334cd98baba915baca1c1c75ca521;hb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;hp=9e231d9f36cd4ea4353a9fc331977ab8affc8a0c;hpb=7e5ac6af8987bf12f3e338d00e96e8cb74f3534b;p=builder.git diff --git a/source/csourcefile.h b/source/csourcefile.h index 9e231d9..c57654a 100644 --- a/source/csourcefile.h +++ b/source/csourcefile.h @@ -1,7 +1,7 @@ #ifndef CSOURCEFILE_H_ #define CSOURCEFILE_H_ -#include "misc.h" +#include #include "sourcefile.h" /** @@ -9,16 +9,19 @@ Represents a C or C++ source file. */ class CSourceFile: public SourceFile { -private: - StringList includes; +protected: + std::vector includes; public: - CSourceFile(Builder &, const Msp::FS::Path &); + CSourceFile(Builder &b, const Msp::FS::Path &p): SourceFile(b, p) { } CSourceFile(Builder &, const Component &, const Msp::FS::Path &); - virtual const char *get_type() const { return "CSourceFile"; } - const StringList &get_includes() const { return includes; } - virtual void find_depends(); + const char *get_type() const override { return "CSourceFile"; } + const std::vector &get_includes() const { return includes; } +protected: + virtual void parse_includes(Msp::IO::Base &); + void find_dependencies() override; + void modified() override; }; #endif