X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcsourcefile.h;h=dce6e19c7a478bbbe3744811800de844a71f1e87;hb=bc85cc286c8a3f1055f1979a7ff8697cf1b61912;hp=035f66780725135a4c49799a03666a8fffcc07d7;hpb=69cdee2c53972c1dd7e1b9d83ddcd8f6c3c589f7;p=builder.git diff --git a/source/csourcefile.h b/source/csourcefile.h index 035f667..dce6e19 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,22 @@ Represents a C or C++ source file. */ class CSourceFile: public SourceFile { -private: - StringList includes; +public: + typedef std::list IncludeList; + +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 StringList &get_includes() const { return includes; } + const IncludeList &get_includes() const { return includes; } +protected: + virtual void parse_includes(Msp::IO::Base &); virtual void find_dependencies(); + virtual void modified(); }; #endif