summaryrefslogtreecommitdiff
path: root/src/asset_map.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-31 00:07:08 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-31 00:07:08 +0100
commitd8c9cbec9d87f28da338350880b7618b94f4da81 (patch)
treec1e853ab494ac3731982c075046215f670153232 /src/asset_map.cc
parent9a9d4e014c16be88d72914a9480343445bc785a5 (diff)
Bits.
Diffstat (limited to 'src/asset_map.cc')
-rw-r--r--src/asset_map.cc18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/asset_map.cc b/src/asset_map.cc
index b5e621d4..11e80284 100644
--- a/src/asset_map.cc
+++ b/src/asset_map.cc
@@ -4,20 +4,14 @@ using namespace std;
using namespace libdcp;
AssetMap::AssetMap (string file)
- : XMLFile (file)
+ : XMLFile (file, "AssetMap")
{
id = string_node ("Id");
creator = string_node ("Creator");
volume_count = int_node ("VolumeCount");
issue_date = string_node ("IssueDate");
issuer = string_node ("Issuer");
- asset_list = sub_node<AssetList> ("AssetMapAssetList");
-}
-
-AssetMapAssetList::AssetMapAssetList (xmlpp::Node const * node)
- : XMLNode (node)
-{
- assets = sub_nodes<AssetMapAsset> ("Asset");
+ assets = sub_nodes<AssetMapAsset> ("AssetList", "Asset");
}
AssetMapAsset::AssetMapAsset (xmlpp::Node const * node)
@@ -25,13 +19,7 @@ AssetMapAsset::AssetMapAsset (xmlpp::Node const * node)
{
id = string_node ("Id");
packing_list = optional_string_node ("PackingList");
- chunk_list = sub_node<ChunkList> ("ChunkList");
-}
-
-ChunkList::ChunkList (xmlpp::Node const * node)
- : XMLNode (node)
-{
- chunks = sub_nodes<Chunk> ("Chunk");
+ chunks = sub_nodes<Chunk> ("ChunkList", "Chunk");
}
Chunk::Chunk (xmlpp::Node const * node)