4 using namespace libdcp;
7 : XMLFile (file, "CompositionPlaylist")
9 id = string_node ("Id");
10 annotation_text = string_node ("AnnotationText");
11 issue_date = string_node ("IssueDate");
12 creator = string_node ("Creator");
13 content_title_text = string_node ("ContentTitleText");
14 content_kind = kind_node ("ContentKind");
15 content_version = sub_node<ContentVersion> ("ContentVersion");
16 ignore_node ("RatingList");
17 reel_list = sub_node<ReelList> ("ReelList");
22 ContentVersion::ContentVersion (xmlpp::Node const * node)
25 id = string_node ("Id");
26 label_text = string_node ("LabelText");
30 ReelList::ReelList (xmlpp::Node const * node)
33 reels = sub_nodes<Reel> ("Reel");
37 Reel::Reel (xmlpp::Node const * node)
40 id = string_node ("Id");
41 asset_list = sub_node<CPLAssetList> ("AssetList");
46 CPLAssetList::CPLAssetList (xmlpp::Node const * node)
49 main_picture = sub_node<MainPicture> ("MainPicture");
50 main_sound = optional_sub_node<MainSound> ("MainSound");
55 MainPicture::MainPicture (xmlpp::Node const * node)
58 id = string_node ("Id");
59 annotation_text = string_node ("AnnotationText");
60 edit_rate = fraction_node ("EditRate");
61 intrinsic_duration = int_node ("IntrinsicDuration");
62 entry_point = int_node ("EntryPoint");
63 duration = int_node ("Duration");
64 frame_rate = fraction_node ("FrameRate");
65 screen_aspect_ratio = fraction_node ("ScreenAspectRatio");
70 MainSound::MainSound (xmlpp::Node const * node)
73 id = string_node ("Id");
74 annotation_text = string_node ("AnnotationText");
75 edit_rate = fraction_node ("EditRate");
76 intrinsic_duration = int_node ("IntrinsicDuration");
77 entry_point = int_node ("EntryPoint");
78 duration = int_node ("Duration");