blob: f49b6efbcf39b03bd43535ef37be3942f8bed81d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#include <boost/shared_ptr.hpp>
#include "xml.h"
namespace libdcp {
class MainPicture : public XMLNode
{
public:
MainPicture () {}
MainPicture (xmlpp::Node const * node);
std::string id;
std::string annotation_text;
Fraction edit_rate;
int64_t intrinsic_duration;
int64_t entry_point;
int64_t duration;
Fraction frame_rate;
Fraction screen_aspect_ratio;
};
class MainSound : public XMLNode
{
public:
MainSound () {}
MainSound (xmlpp::Node const * node);
std::string id;
std::string annotation_text;
Fraction edit_rate;
int64_t intrinsic_duration;
int64_t entry_point;
int64_t duration;
};
class CPLAssetList : public XMLNode
{
public:
CPLAssetList () {}
CPLAssetList (xmlpp::Node const * node);
boost::shared_ptr<MainPicture> main_picture;
boost::shared_ptr<MainSound> main_sound;
};
class Reel : public XMLNode
{
public:
Reel () {}
Reel (xmlpp::Node const * node);
std::string id;
boost::shared_ptr<CPLAssetList> asset_list;
};
class ContentVersion : public XMLNode
{
public:
ContentVersion () {}
ContentVersion (xmlpp::Node const * node);
std::string id;
std::string label_text;
};
class CPL : public XMLFile
{
public:
CPL (std::string file);
std::string id;
std::string annotation_text;
std::string issue_date;
std::string creator;
std::string content_title_text;
ContentKind content_kind;
boost::shared_ptr<ContentVersion> content_version;
std::list<boost::shared_ptr<Reel> > reels;
};
}
|