]> git.tdb.fi Git - builder.git/blob - source/header.h
Add Id tag to all files
[builder.git] / source / header.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 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 public:
19         Header(Builder &b, const Component *c, const std::string &f): SourceFile(b,c,f) { }
20         const char *get_type() const { return "Header"; }
21 };
22
23 /**
24 A header file that doesn't belong to any known package.
25 */
26 class SystemHeader: public Header
27 {
28 public:
29         SystemHeader(Builder &b, const std::string &f): Header(b,0,f) { }
30         const char *get_type() const { return "SystemHeader"; }
31         void       find_depends()    { deps_ready=true; }
32 };
33
34 #endif