summaryrefslogtreecommitdiff
path: root/src/asset_map.h
blob: 34e301a59f26f8aa68cfee5bae54da6b0c5ab6a7 (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
34
35
36
37
38
39
40
41
42
#include <boost/shared_ptr.hpp>
#include "xml.h"

namespace libdcp {

class Chunk : public XMLNode
{
public:
	Chunk ();
	Chunk (xmlpp::Node const * node);

	std::string path;
	int64_t volume_index;
	int64_t offset;
	int64_t length;
};

class AssetMapAsset : public XMLNode
{
public:
	AssetMapAsset ();
	AssetMapAsset (xmlpp::Node const * node);

	std::string id;
	std::string packing_list;
	std::list<boost::shared_ptr<Chunk> > chunks;
};

class AssetMap : public XMLFile
{
public:
	AssetMap (std::string file);

	std::string id;
	std::string creator;
	int64_t volume_count;
	std::string issue_date;
	std::string issuer;
	std::list<boost::shared_ptr<AssetMapAsset> > assets;
};

}