summaryrefslogtreecommitdiff
path: root/test/subs_in_out.cc
blob: f3f4baf979be5ac33c8ceb8feaee75a26cf064b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include "subtitle_content.h"

using namespace std;

int main (int argc, char* argv[])
{
	if (argc < 2) {
		cerr << "Syntax: " << argv[0] << " <subtitle file>\n";
		exit (EXIT_FAILURE);
	}
	
	dcp::SubtitleContent s (argv[1], false);
	cout << s.xml_as_string ();
	return 0;
}