summaryrefslogtreecommitdiff
path: root/src/pkl.h
blob: ab6c7a60dff386c865103e1fd3571535dc908f49 (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
#include <boost/shared_ptr.hpp>
#include "xml.h"

namespace libdcp {

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

	std::string id;
	std::string annotation_text;
	std::string hash;
	int size;
	std::string type;
};

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

	std::list<boost::shared_ptr<PKLAsset> > assets;
};

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

	std::string id;
	std::string annotation_text;
	std::string issue_date;
	std::string issuer;
	std::string creator;
	boost::shared_ptr<PKLAssetList> asset_list;
};
	
}