X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffile.h;h=4f5618f1565037723c1aa6609efe741f37f9f73c;hb=1d687970cc35e54c3335f4aa2fdef23424fe0a06;hp=cd3eccf6b48c963d125d70cfb34824b16ecaabb8;hpb=be8a901dfc026f61db46d5d64a41cecc619bc97d;p=builder.git diff --git a/source/file.h b/source/file.h index cd3eccf..4f5618f 100644 --- a/source/file.h +++ b/source/file.h @@ -1,22 +1,18 @@ -/* $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"; } -private: - virtual Action *create_action() { return 0; } }; #endif