X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.h;h=befebb814db6f7e95dd5f58a94ffa66c562e11dc;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=9be26d9debcac1303259c766575d06e2e9ad96bf;hpb=9e28243c9687608ec3c32954b4031490296ae877;p=builder.git diff --git a/source/tar.h b/source/tar.h index 9be26d9..befebb8 100644 --- a/source/tar.h +++ b/source/tar.h @@ -1,33 +1,20 @@ #ifndef TAR_H_ #define TAR_H_ -#include -#include "internaltask.h" #include "tool.h" class TarBall; class Tar: public Tool { -private: - class Worker: public InternalTask::Worker - { - private: - const TarBall &tarball; - - public: - Worker(const TarBall &); - - private: - virtual void main(); - void store_number(char *, unsigned, unsigned); - }; - public: Tar(Builder &); - virtual Target *create_target(const std::list &, const std::string &); - virtual Task *run(const Target &) const; + Target *create_target(const std::vector &, const std::string &) override; + +private: + static bool _run(const TarBall &); + static void store_number(char *, unsigned, unsigned); }; #endif