X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fheader.h;h=f52c13b53c0baa3add28731fe007f5c3297ac33f;hb=20994a6f4802f2dbcf01888d0e1996edf554ade5;hp=a22c6ce772b7a59d5eac9a2615688b70c03005c7;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/header.h b/source/header.h index a22c6ce..f52c13b 100644 --- a/source/header.h +++ b/source/header.h @@ -1,3 +1,10 @@ +/* $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_ @@ -8,9 +15,11 @@ 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"; } }; /** @@ -19,9 +28,8 @@ 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