X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fzipper.h;h=9f3e867c773c78e6ab8c8f22c2a855c64f7902cc;hb=3799e91d126d243d41c44dcb0ca1bfa66b53a57e;hp=a981a22b7a18044bb794833a71a4f6d70308e18a;hpb=4ead1f24f97edde9b6a77e47947cb188a551b49b;p=dcpomatic.git diff --git a/src/lib/zipper.h b/src/lib/zipper.h index a981a22b7..9f3e867c7 100644 --- a/src/lib/zipper.h +++ b/src/lib/zipper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,22 +18,25 @@ */ -#include + #include -#include #include -class Zipper : public boost::noncopyable + +class Zipper { public: Zipper (boost::filesystem::path file); ~Zipper (); + Zipper (Zipper const&) = delete; + Zipper& operator= (Zipper const&) = delete; + void add (std::string name, std::string content); void close (); private: struct zip* _zip; - std::vector > _store; + std::vector> _store; };