X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.h;h=fa4a4d6070100098f3da70520caa7efa696cac4f;hb=d1eb133ab529cdae131be7b150209f03189248f3;hp=250b5ffae1b60392f1848c8924baf43b64c70787;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/tar.h b/source/tar.h index 250b5ff..fa4a4d6 100644 --- a/source/tar.h +++ b/source/tar.h @@ -1,31 +1,21 @@ #ifndef TAR_H_ #define TAR_H_ -#include -#include "internalaction.h" -#include "misc.h" +#include "tool.h" class TarBall; -class Tar: public InternalAction +class Tar: public Tool { -private: - class Worker: public InternalAction::Worker - { - public: - Worker(Tar &); - private: - Tar &tar; - - void main(); - void store_number(char *, unsigned, unsigned); - }; +public: + Tar(Builder &); - const TarBall &tarball; - StringList files; + Target *create_target(const std::vector &, const std::string &) override; + Task *run(const Target &) const override; -public: - Tar(Builder &, const TarBall &); +private: + static bool _run(const TarBall &); + static void store_number(char *, unsigned, unsigned); }; #endif