/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2016 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
* @brief DCPContent class.
*/
-#include "video_content.h"
#include "single_stream_audio_content.h"
#include "subtitle_content.h"
#include <libcxml/cxml.h>
/** @class DCPContent
* @brief An existing DCP used as input.
*/
-class DCPContent : public VideoContent, public SingleStreamAudioContent, public SubtitleContent
+class DCPContent : public SingleStreamAudioContent, public SubtitleContent
{
public:
DCPContent (boost::shared_ptr<const Film>, boost::filesystem::path p);
return _reference_video;
}
+ bool can_reference_video (std::list<std::string> &) const;
+
void set_reference_audio (bool r);
bool reference_audio () const {
return _reference_audio;
}
+ bool can_reference_audio (std::list<std::string> &) const;
+
void set_reference_subtitle (bool r);
bool reference_subtitle () const {
return _reference_subtitle;
}
+ bool can_reference_subtitle (std::list<std::string> &) const;
+
protected:
- void add_properties (std::list<std::pair<std::string, std::string> >& p) const;
+ void add_properties (std::list<UserProperty>& p) const;
private:
void read_directory (boost::filesystem::path);
+ std::list<DCPTimePeriod> reels () const;
+ template <class T> bool can_reference (std::string overlapping, std::list<std::string>& why_not) const;
std::string _name;
bool _has_subtitles;