summaryrefslogtreecommitdiff
path: root/src/asset_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asset_list.h')
-rw-r--r--src/asset_list.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/asset_list.h b/src/asset_list.h
new file mode 100644
index 00000000..4a4a2799
--- /dev/null
+++ b/src/asset_list.h
@@ -0,0 +1,48 @@
+/*
+ Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <boost/shared_ptr.hpp>
+#include <boost/function.hpp>
+#include <libxml++/libxml++.h>
+#include "types.h"
+
+namespace cxml {
+ class Node;
+}
+
+namespace libdcp {
+
+class AssetInstance;
+
+class AssetList
+{
+public:
+ AssetList () {}
+ AssetList (boost::shared_ptr<const cxml::Node> node);
+
+ void write_to_cpl (xmlpp::Element *, bool) const;
+ bool equals (boost::shared_ptr<const AssetList>, EqualityOptions opt, boost::function<void (NoteType, std::string)> note) const;
+
+ boost::shared_ptr<AssetInstance> main_picture;
+ boost::shared_ptr<AssetInstance> main_stereoscopic_picture;
+ boost::shared_ptr<AssetInstance> main_sound;
+ boost::shared_ptr<AssetInstance> main_subtitle;
+};
+
+}