summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-02 18:23:36 +0200
committerCarl Hetherington <cth@carlh.net>2024-08-02 18:23:36 +0200
commit7d9e108ba3629b2e9120bc1da3354935c41aca37 (patch)
treec8ffdb2bca75d62bfe9fa2262e9fc4cd19c45027 /src/data.h
parent6f98afd8021f9475bbd342bdcb39162b3167fa9e (diff)
WIP: more hacks.shared-ptr
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index 063187a6..d8cd1fe6 100644
--- a/src/data.h
+++ b/src/data.h
@@ -48,6 +48,19 @@
namespace dcp {
+class ConstantData
+{
+public:
+ virtual ~ConstantData() {}
+
+ void write (boost::filesystem::path file) const;
+ void write_via_temp (boost::filesystem::path temp, boost::filesystem::path final) const;
+
+ virtual uint8_t const * data () const = 0;
+ virtual int size () const = 0;
+};
+
+
class Data
{
public: