X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.h;h=dedd0f57a0e3aa41607d67b0f6d16c10c6fa799a;hb=HEAD;hp=a5044d8ba50a58bfcf5c56866ab59c962ac556fd;hpb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;p=builder.git diff --git a/source/copy.h b/source/copy.h deleted file mode 100644 index a5044d8..0000000 --- a/source/copy.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef COPY_H_ -#define COPY_H_ - -#include -#include -#include "internaltask.h" -#include "tool.h" - -class InstalledFile; - -/** -Copies a file to another place. Used by the InstalledFile target. -*/ -class Copy: public Tool -{ -private: - /** - A worker thread that actually does the data transfer. - */ - class Worker: public InternalTask::Worker - { - private: - const InstalledFile ⌖ - - public: - Worker(const InstalledFile &t): target(t) { } - private: - void main() override; - }; - -public: - Copy(Builder &b): Tool(b, "CP") { } - - Target *create_target(const std::vector &, const std::string &) override; - Task *run(const Target &) const override; -}; - -#endif