X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fheader.h;h=466375f485635c2e463d87995f0214378cacd36e;hb=51d5a0f618faabfce9a0a5d5dd64b0b0d52b97cb;hp=ce1f62588a5918a833f4603328eface470c01feb;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/header.h b/source/header.h index ce1f625..466375f 100644 --- a/source/header.h +++ b/source/header.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef HEADER_H_ #define HEADER_H_ @@ -15,9 +8,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"; } }; /** @@ -26,9 +21,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