X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffile.h;h=42d73b8c8366f29d056ff019c2b9c219527230b9;hb=564160e126f525dda52f27044d29b479088da191;hp=19d14af92749a425e2f8268fcb483cc62d9fb0f5;hpb=66d1078c04849ec17a7343d0494d6ed087e04318;p=builder.git diff --git a/source/file.h b/source/file.h index 19d14af..42d73b8 100644 --- a/source/file.h +++ b/source/file.h @@ -1,25 +1,18 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef FILE_H_ #define FILE_H_ #include "filetarget.h" /** -Just a file. Any file, not attached to a package. +Just an arbitrary file. No special meaning attached. */ class File: public FileTarget { public: - File(Builder &, const std::string &); - virtual const char *get_type() const { return "File"; } -private: - virtual Action *create_action() { return 0; } + File(Builder &b, const Msp::FS::Path &t): FileTarget(b, t) { } + File(Builder &b, const SourcePackage &p, const Msp::FS::Path &t): FileTarget(b, p, t) { } + + const char *get_type() const override { return "File"; } }; #endif