X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fheader.h;h=f52c13b53c0baa3add28731fe007f5c3297ac33f;hb=699493ee7346c578537f4e310702c57012686c22;hp=c398468a882dc2cb0ded93a493052c4b9e70774b;hpb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;p=builder.git diff --git a/source/header.h b/source/header.h index c398468..f52c13b 100644 --- a/source/header.h +++ b/source/header.h @@ -1,21 +1,35 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef HEADER_H_ #define HEADER_H_ #include "sourcefile.h" +/** +Represents a header file. Mainly exists to give extra information to the user. +*/ class Header: public SourceFile { +protected: + Header(Builder &b, const std::string &f): SourceFile(b, f) { } public: - Header(Builder &b, const Component *c, const std::string &f): SourceFile(b,c,f) { } - const char *get_type() const { return "Header"; } + Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { } + virtual const char *get_type() const { return "Header"; } }; +/** +A header file that doesn't belong to any known package. +*/ class SystemHeader: public Header { public: - SystemHeader(Builder &b, const std::string &f): Header(b,0,f) { } - const char *get_type() const { return "SystemHeader"; } - void find_depends() { deps_ready=true; } + SystemHeader(Builder &b, const std::string &f): Header(b, f) { } + virtual const char *get_type() const { return "SystemHeader"; } }; #endif