]> git.tdb.fi Git - builder.git/blobdiff - source/header.h
Replace per-file copyright notices with a single file
[builder.git] / source / header.h
index c398468a882dc2cb0ded93a493052c4b9e70774b..466375f485635c2e463d87995f0214378cacd36e 100644 (file)
@@ -3,19 +3,26 @@
 
 #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