X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffile.h;h=76c03790a6d689173d2ee9bd849fb7ea6ac935c1;hb=dad4c41302de525a1456e9d5b738831487c8acac;hp=35c10872d14ae5d32ab9ca6252dec2ddf2e154af;hpb=555190f7eafcf3a67750fc63872b23e17371aa98;p=builder.git diff --git a/source/file.h b/source/file.h index 35c1087..76c0379 100644 --- a/source/file.h +++ b/source/file.h @@ -1,21 +1,19 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef FILE_H_ #define FILE_H_ -#include "target.h" +#include "filetarget.h" -class File: public Target +/** +Just an arbitary file. No special meaning attached. +*/ +class File: public FileTarget { public: - File(Builder &, const std::string &); + File(Builder &b, const Msp::FS::Path &t): FileTarget(b, 0, t) { } + File(Builder &b, Package &p, const Msp::FS::Path &t): FileTarget(b, &p, t) { } virtual const char *get_type() const { return "File"; } - virtual Action *build() { return 0; } +private: + virtual Action *create_action() { return 0; } }; #endif