X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcsourcefile.h;h=55809b094c71e3babf04a77f308d6346aeb01d8a;hb=bde362811368647047f3ca13bdec596f092ecffe;hp=8c61a515db5544ef4e274d7037a41e456725fd07;hpb=f76c063eb9b792088e034ffb4c2f173b843e8c57;p=builder.git diff --git a/source/csourcefile.h b/source/csourcefile.h index 8c61a51..55809b0 100644 --- a/source/csourcefile.h +++ b/source/csourcefile.h @@ -1,6 +1,7 @@ #ifndef CSOURCEFILE_H_ #define CSOURCEFILE_H_ +#include #include "sourcefile.h" /** @@ -11,17 +12,19 @@ class CSourceFile: public SourceFile public: typedef std::list IncludeList; -private: +protected: IncludeList includes; public: CSourceFile(Builder &, const Msp::FS::Path &); CSourceFile(Builder &, const Component &, const Msp::FS::Path &); - virtual const char *get_type() const { return "CSourceFile"; } + const char *get_type() const override { return "CSourceFile"; } const IncludeList &get_includes() const { return includes; } -private: - virtual void find_dependencies(); +protected: + virtual void parse_includes(Msp::IO::Base &); + void find_dependencies() override; + void modified() override; }; #endif