projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Advanced option to allow mapping to any audio channel (#2279).
[dcpomatic.git]
/
src
/
lib
/
zipper.h
diff --git
a/src/lib/zipper.h
b/src/lib/zipper.h
index a981a22b7a18044bb794833a71a4f6d70308e18a..f554e2e8f38a2c202f9d6ea470ff363fabb335c9 100644
(file)
--- a/
src/lib/zipper.h
+++ b/
src/lib/zipper.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020
-2021
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,22
+18,26
@@
*/
*/
-#include <boost/noncopyable.hpp>
+
#include <boost/filesystem.hpp>
#include <boost/filesystem.hpp>
-#include <
boost/shared_ptr.hpp
>
+#include <
memory
>
#include <vector>
#include <vector>
-class Zipper : public boost::noncopyable
+
+class Zipper
{
public:
Zipper (boost::filesystem::path file);
~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;
void add (std::string name, std::string content);
void close ();
private:
struct zip* _zip;
- std::vector<
boost::shared_ptr<std::string>
> _store;
+ std::vector<
std::shared_ptr<std::string>
> _store;
};
};