summaryrefslogtreecommitdiff
path: root/src/asset_map.h
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.h
parent9a9d4e014c16be88d72914a9480343445bc785a5 (diff)
Bits.
Diffstat (limited to 'src/asset_map.h')
-rw-r--r--src/asset_map.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/asset_map.h b/src/asset_map.h
index 56370ab9..754528ec 100644
--- a/src/asset_map.h
+++ b/src/asset_map.h
@@ -3,24 +3,27 @@
namespace libdcp {
-class AssetMapAsset : public XMLNode
+class Chunk : public XMLNode
{
public:
- AssetMapAsset ();
- AssetMapAsset (xmlpp::Node const * node);
+ Chunk ();
+ Chunk (xmlpp::Node const * node);
- std::string id;
- std::string packing_list;
- boost::shared_ptr<ChunkList>
+ std::string path;
+ int volume_index;
+ int offset;
+ int length;
};
-class AssetMapAssetList : public XMLNode
+class AssetMapAsset : public XMLNode
{
public:
- AssetMapAssetList ();
- AssetMapAssetList (xmlpp::Node const * node);
+ AssetMapAsset ();
+ AssetMapAsset (xmlpp::Node const * node);
- std::list<boost::shared_ptr<AssetMapAsset> > assets;
+ std::string id;
+ std::string packing_list;
+ std::list<boost::shared_ptr<Chunk> > chunks;
};
class AssetMap : public XMLFile
@@ -33,5 +36,7 @@ public:
int volume_count;
std::string issue_date;
std::string issuer;
- boost::shared_ptr<AssetMapAssetList> asset_list;
+ std::list<boost::shared_ptr<AssetMapAsset> > assets;
};
+
+}