projects
/
libdcp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
AnnotationText is (I believe) optional.
[libdcp.git]
/
test
/
subs_in_out.cc
1
#include <iostream>
2
#include "subtitle_asset.h"
3
4
using namespace std;
5
6
int main (int argc, char* argv[])
7
{
8
if (argc < 2) {
9
cerr << "Syntax: " << argv[0] << " <subtitle file>\n";
10
exit (EXIT_FAILURE);
11
}
12
13
libdcp::SubtitleAsset s ("foo", "bar", "baz");
14
s.read_xml (argv[1]);
15
s.write_xml (cout);
16
return 0;
17
}