]> git.tdb.fi Git - builder.git/blob - source/header.h
Add comments
[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 public:
12         Header(Builder &b, const Component *c, const std::string &f): SourceFile(b,c,f) { }
13         const char *get_type() const { return "Header"; }
14 };
15
16 /**
17 A header file that doesn't belong to any known package.
18 */
19 class SystemHeader: public Header
20 {
21 public:
22         SystemHeader(Builder &b, const std::string &f): Header(b,0,f) { }
23         const char *get_type() const { return "SystemHeader"; }
24         void       find_depends()    { deps_ready=true; }
25 };
26
27 #endif