]> git.tdb.fi Git - builder.git/blob - source/header.h
Add install component type
[builder.git] / source / header.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef HEADER_H_
9 #define HEADER_H_
10
11 #include "sourcefile.h"
12
13 /**
14 Represents a header file.  Mainly exists to give extra information to the user.
15 */
16 class Header: public SourceFile
17 {
18 protected:
19         Header(Builder &b, const std::string &f): SourceFile(b, f) { }
20 public:
21         Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { }
22         virtual const char *get_type() const { return "Header"; }
23 };
24
25 /**
26 A header file that doesn't belong to any known package.
27 */
28 class SystemHeader: public Header
29 {
30 public:
31         SystemHeader(Builder &b, const std::string &f): Header(b, f) { }
32         virtual const char *get_type() const { return "SystemHeader"; }
33 };
34
35 #endif