Ignore Language tag in subtitles. Get MXF/XML filenames from the asset map.
[libdcp.git] / src / pkl.h
1 /*
2     Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 /** @file  src/pkl.h
21  *  @brief Classes used to parse a PKL
22  */
23
24 #include <boost/shared_ptr.hpp>
25 #include "xml.h"
26
27 namespace libdcp {
28
29 class PKLAsset : public XMLNode
30 {
31 public:
32         PKLAsset () {}
33         PKLAsset (xmlpp::Node const * node);
34
35         std::string id;
36         std::string annotation_text;
37         std::string hash;
38         int64_t size;
39         std::string type;
40         std::string original_file_name;
41 };
42
43 class PKL : public XMLFile
44 {
45 public:
46         PKL (std::string file);
47
48         std::string id;
49         std::string annotation_text;
50         std::string issue_date;
51         std::string issuer;
52         std::string creator;
53         std::list<boost::shared_ptr<PKLAsset> > assets;
54 };
55         
56 }