]> git.tdb.fi Git - builder.git/blob - source/header.h
466375f485635c2e463d87995f0214378cacd36e
[builder.git] / source / header.h
1 #ifndef HEADER_H_
2 #define HEADER_H_
3
4 #include "sourcefile.h"
5
6 /**
7 Represents a header file.  Mainly exists to give extra information to the user.
8 */
9 class Header: public SourceFile
10 {
11 protected:
12         Header(Builder &b, const std::string &f): SourceFile(b, f) { }
13 public:
14         Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { }
15         virtual const char *get_type() const { return "Header"; }
16 };
17
18 /**
19 A header file that doesn't belong to any known package.
20 */
21 class SystemHeader: public Header
22 {
23 public:
24         SystemHeader(Builder &b, const std::string &f): Header(b, f) { }
25         virtual const char *get_type() const { return "SystemHeader"; }
26 };
27
28 #endif