summaryrefslogtreecommitdiff
path: root/src/resource.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-10 22:39:35 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-10 22:39:35 +0000
commitb21ac5801854d9d8946a0f8d0cadca2abd9a066b (patch)
tree1ea236a585547fcac0e7e06b7912e9702c64ba5e /src/resource.h
parent1ee5cc88cb32927f95358e2d03985caf5a1d8e05 (diff)
Hacks.imf2
Diffstat (limited to 'src/resource.h')
-rw-r--r--src/resource.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/resource.h b/src/resource.h
new file mode 100644
index 00000000..2f4fded5
--- /dev/null
+++ b/src/resource.h
@@ -0,0 +1,45 @@
+/*
+ Copyright (C) 2016 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 "object.h"
+#include "types.h"
+#include <libcxml/cxml.h>
+
+namespace dcp {
+namespace im {
+
+class Resource : public Object
+{
+public:
+ Resource (cxml::ConstNodePtr node);
+
+private:
+ std::string _annotation;
+ dcp::Fraction _edit_rate;
+ int64_t _intrinsic_duration;
+ int64_t _entry_point;
+ int64_t _source_duration;
+ int _repeat_count;
+ std::string _source_encoding;
+ std::string _track_file_id;
+ std::string _hash;
+};
+
+}
+}