]> git.tdb.fi Git - builder.git/blobdiff - source/header.h
Add install component type
[builder.git] / source / header.h
index ce1f62588a5918a833f4603328eface470c01feb..f52c13b53c0baa3add28731fe007f5c3297ac33f 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -15,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"; }
 };
 
 /**
@@ -26,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