Ignore Language node in MainSound.
[libdcp.git] / src / asset_map.cc
index 11e8028478e1697a3e56b16f46648c6db2963f42..3af2d6f8df4cd4e1b5c3bf9f56ac3f766784560b 100644 (file)
@@ -1,3 +1,26 @@
+/*
+    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+/** @file  src/asset_map.cc
+ *  @brief Classes used to parse a AssetMap.
+ */
+
 #include "asset_map.h"
 
 using namespace std;
@@ -8,7 +31,7 @@ AssetMap::AssetMap (string file)
 {
        id = string_node ("Id");
        creator = string_node ("Creator");
-       volume_count = int_node ("VolumeCount");
+       volume_count = int64_node ("VolumeCount");
        issue_date = string_node ("IssueDate");
        issuer = string_node ("Issuer");
        assets = sub_nodes<AssetMapAsset> ("AssetList", "Asset");
@@ -26,8 +49,8 @@ Chunk::Chunk (xmlpp::Node const * node)
        : XMLNode (node)
 {
        path = string_node ("Path");
-       volume_index = int_node ("VolumeIndex");
-       offset = int_node ("Offset");
-       length = int_node ("Length");
+       volume_index = optional_int64_node ("VolumeIndex");
+       offset = optional_int64_node ("Offset");
+       length = optional_int64_node ("Length");
 }