Use dcp::file_to_string().
[dcpomatic.git] / src / lib / spl_entry.h
index b7fdaa2e05ee277906c2c8fd9870ee2bc5c06bfa..b2977c8aa2d2b7ca6deea67c49ac97ba9825aaaf 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
+#ifndef DCPOMATIC_SPL_ENTRY_H
+#define DCPOMATIC_SPL_ENTRY_H
+
+
+#include <libcxml/cxml.h>
+#include <dcp/types.h>
+
+
+namespace xmlpp {
+       class Element;
+}
+
+class Content;
+
+
 class SPLEntry
 {
 public:
-       SPLEntry (boost::filesystem::path p)
-               : dcp (p)
-       {}
+       SPLEntry (std::shared_ptr<Content> c);
+
+       void as_xml (xmlpp::Element* e);
 
-       /* Length of black before this DCP */
-       DCPTime black_before;
-       boost::filesystem::path dcp;
+       std::shared_ptr<Content> content;
+       std::string name;
+       /** Digest of this content */
+       std::string digest;
+       /** CPL ID */
+       std::string id;
+       dcp::ContentKind kind;
+       bool encrypted;
+
+private:
+       void construct (std::shared_ptr<Content> content);
 };
+
+
+#endif