X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.h;h=fa4a4d6070100098f3da70520caa7efa696cac4f;hb=d1eb133ab529cdae131be7b150209f03189248f3;hp=d0240d93bf315c71b0b1536dd38e07ea16352d00;hpb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;p=builder.git diff --git a/source/tar.h b/source/tar.h index d0240d9..fa4a4d6 100644 --- a/source/tar.h +++ b/source/tar.h @@ -1,33 +1,21 @@ #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: - void main() override; - void store_number(char *, unsigned, unsigned); - }; - public: Tar(Builder &); Target *create_target(const std::vector &, const std::string &) override; Task *run(const Target &) const override; + +private: + static bool _run(const TarBall &); + static void store_number(char *, unsigned, unsigned); }; #endif