summaryrefslogtreecommitdiff
path: root/test/subs_in_out.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/subs_in_out.cc')
-rw-r--r--test/subs_in_out.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/subs_in_out.cc b/test/subs_in_out.cc
new file mode 100644
index 00000000..209602e5
--- /dev/null
+++ b/test/subs_in_out.cc
@@ -0,0 +1,17 @@
+#include <iostream>
+#include "subtitle_asset.h"
+
+using namespace std;
+
+int main (int argc, char* argv[])
+{
+ if (argc < 2) {
+ cerr << "Syntax: " << argv[0] << " <subtitle file>\n";
+ exit (EXIT_FAILURE);
+ }
+
+ libdcp::SubtitleAsset s ("foo", "bar", "baz");
+ s.read_xml (argv[1]);
+ s.write_xml (cout);
+ return 0;
+}