blob: 9276170c9279ce932ad05f465d1ff309c7f302ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "asset_map.h"
using namespace std;
using namespace libdcp;
AssetMap::AssetMap (string file)
: XMLFile (file, "AssetMap")
{
id = string_node ("Id");
creator = string_node ("Creator");
volume_count = int64_node ("VolumeCount");
issue_date = string_node ("IssueDate");
issuer = string_node ("Issuer");
assets = sub_nodes<AssetMapAsset> ("AssetList", "Asset");
}
AssetMapAsset::AssetMapAsset (xmlpp::Node const * node)
: XMLNode (node)
{
id = string_node ("Id");
packing_list = optional_string_node ("PackingList");
chunks = sub_nodes<Chunk> ("ChunkList", "Chunk");
}
Chunk::Chunk (xmlpp::Node const * node)
: XMLNode (node)
{
path = string_node ("Path");
volume_index = int64_node ("VolumeIndex");
offset = int64_node ("Offset");
length = int64_node ("Length");
}
|