4 using namespace libdcp;
6 AssetMap::AssetMap (string file)
7 : XMLFile (file, "AssetMap")
9 id = string_node ("Id");
10 creator = string_node ("Creator");
11 volume_count = int_node ("VolumeCount");
12 issue_date = string_node ("IssueDate");
13 issuer = string_node ("Issuer");
14 assets = sub_nodes<AssetMapAsset> ("AssetList", "Asset");
17 AssetMapAsset::AssetMapAsset (xmlpp::Node const * node)
20 id = string_node ("Id");
21 packing_list = optional_string_node ("PackingList");
22 chunks = sub_nodes<Chunk> ("ChunkList", "Chunk");
25 Chunk::Chunk (xmlpp::Node const * node)
28 path = string_node ("Path");
29 volume_index = int_node ("VolumeIndex");
30 offset = int_node ("Offset");
31 length = int_node ("Length");