path -> dir, name for MXFs.
[libdcp.git] / src / pkl.cc
1 #include "pkl.h"
2
3 using namespace std;
4 using namespace libdcp;
5
6 PKL::PKL (string file)
7         : XMLFile (file, "PackingList")
8 {
9         id = string_node ("Id");
10         annotation_text = string_node ("AnnotationText");
11         issue_date = string_node ("IssueDate");
12         issuer = string_node ("Issuer");
13         creator = string_node ("Creator");
14         assets = sub_nodes<PKLAsset> ("AssetList", "Asset");
15 }
16
17 PKLAsset::PKLAsset (xmlpp::Node const * node)
18         : XMLNode (node)
19 {
20         id = string_node ("Id");
21         annotation_text = optional_string_node ("AnnotationText");
22         hash = string_node ("Hash");
23         size = int_node ("Size");
24         type = string_node ("Type");
25 }
26