class AtmosMetadata
{
public:
- AtmosMetadata (std::shared_ptr<const dcp::AtmosAsset> asset);
+ explicit AtmosMetadata (std::shared_ptr<const dcp::AtmosAsset> asset);
std::shared_ptr<dcp::AtmosAsset> create (dcp::Fraction edit_rate) const;
private:
class AtmosMXFContent : public Content
{
public:
- AtmosMXFContent (boost::filesystem::path path);
+ explicit AtmosMXFContent (boost::filesystem::path path);
AtmosMXFContent (cxml::ConstNodePtr node, int version);
std::shared_ptr<AtmosMXFContent> shared_from_this () {
class CheckContentChangeJob : public Job
{
public:
- CheckContentChangeJob (std::shared_ptr<const Film>);
+ explicit CheckContentChangeJob (std::shared_ptr<const Film>);
~CheckContentChangeJob ();
std::string name () const override;
class DCPContent : public Content
{
public:
- DCPContent (boost::filesystem::path p);
+ explicit DCPContent (boost::filesystem::path p);
DCPContent (cxml::ConstNodePtr, int version);
std::shared_ptr<DCPContent> shared_from_this () {
class DCPSubtitleContent : public DCPSubtitle, public Content
{
public:
- DCPSubtitleContent (boost::filesystem::path);
+ explicit DCPSubtitleContent (boost::filesystem::path);
DCPSubtitleContent (cxml::ConstNodePtr, int);
void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>) override;
{
public:
DCPTextTrack () {}
- DCPTextTrack (cxml::ConstNodePtr node);
+ explicit DCPTextTrack (cxml::ConstNodePtr node);
DCPTextTrack (std::string name_, boost::optional<dcp::LanguageTag> language_);
std::string name;
class ReadDigestScope
{
public:
- ReadDigestScope (std::shared_ptr<Socket> socket);
+ explicit ReadDigestScope (std::shared_ptr<Socket> socket);
bool check ();
private:
std::weak_ptr<Socket> _socket;
class WriteDigestScope
{
public:
- WriteDigestScope (std::shared_ptr<Socket> socket);
+ explicit WriteDigestScope (std::shared_ptr<Socket> socket);
~WriteDigestScope ();
private:
std::weak_ptr<Socket> _socket;
class FileNotFoundError : public std::runtime_error
{
public:
- FileNotFoundError (boost::filesystem::path f);
+ explicit FileNotFoundError (boost::filesystem::path f);
virtual ~FileNotFoundError () throw () {}
/** @return name of the file that this exception concerns */
/** @param f File that we were trying to read from.
* @param e errno value, or 0.
*/
- ReadFileError (boost::filesystem::path f, int e = 0);
+ explicit ReadFileError (boost::filesystem::path f, int e = 0);
};
{
public:
GLError (char const* last, int e);
- GLError (char const* message);
+ explicit GLError (char const* message);
};
class CopyError : public std::runtime_error
{
public:
- CopyError (std::string s, boost::optional<int> n = boost::optional<int>());
+ explicit CopyError (std::string s, boost::optional<int> n = boost::optional<int>());
virtual ~CopyError () throw () {}
std::string message () const {
class FFmpegContent : public Content
{
public:
- FFmpegContent (boost::filesystem::path);
+ explicit FFmpegContent (boost::filesystem::path);
FFmpegContent (cxml::ConstNodePtr, int version, std::list<std::string> &);
- FFmpegContent (std::vector<std::shared_ptr<Content>>);
+ explicit FFmpegContent (std::vector<std::shared_ptr<Content>>);
std::shared_ptr<FFmpegContent> shared_from_this () {
return std::dynamic_pointer_cast<FFmpegContent> (Content::shared_from_this ());
class FFmpegExaminer : public FFmpeg, public VideoExaminer
{
public:
- FFmpegExaminer (std::shared_ptr<const FFmpegContent>, std::shared_ptr<Job> job = std::shared_ptr<Job>());
+ explicit FFmpegExaminer (std::shared_ptr<const FFmpegContent>, std::shared_ptr<Job> job = std::shared_ptr<Job>());
bool has_video () const override;
public:
explicit FFmpegImageProxy (boost::filesystem::path);
explicit FFmpegImageProxy (dcp::ArrayData);
- FFmpegImageProxy (std::shared_ptr<Socket> socket);
+ explicit FFmpegImageProxy (std::shared_ptr<Socket> socket);
Result image (
Image::Alignment alignment,
class FontData
{
public:
- FontData (std::shared_ptr<const Font> font);
+ explicit FontData (std::shared_ptr<const Font> font);
FontData (std::string id_, dcp::ArrayData data_)
: id(id_)
class ImageContent : public Content
{
public:
- ImageContent (boost::filesystem::path);
+ explicit ImageContent (boost::filesystem::path);
ImageContent (cxml::ConstNodePtr, int);
std::shared_ptr<ImageContent> shared_from_this () {
, y(y_)
{}
- PixelQuanta (cxml::ConstNodePtr node);
+ explicit PixelQuanta (cxml::ConstNodePtr node);
void as_xml (xmlpp::Element* node) const;
class RNG
{
public:
- RNG (int32_t seed);
+ explicit RNG (int32_t seed);
int32_t get ();
class StringTextFileContent : public Content
{
public:
- StringTextFileContent (boost::filesystem::path);
+ explicit StringTextFileContent (boost::filesystem::path);
StringTextFileContent (cxml::ConstNodePtr, int, std::list<std::string>&);
std::shared_ptr<StringTextFileContent> shared_from_this () {
struct CPLSummary
{
- CPLSummary (boost::filesystem::path p);
+ explicit CPLSummary (boost::filesystem::path p);
CPLSummary (std::string d, std::string i, std::string a, boost::filesystem::path f, bool e, time_t t)
: dcp_directory (d)
class VideoMXFContent : public Content
{
public:
- VideoMXFContent (boost::filesystem::path path);
+ explicit VideoMXFContent (boost::filesystem::path path);
VideoMXFContent (cxml::ConstNodePtr node, int version);
std::shared_ptr<VideoMXFContent> shared_from_this () {
class Zipper
{
public:
- Zipper (boost::filesystem::path file);
+ explicit Zipper (boost::filesystem::path file);
~Zipper ();
Zipper (Zipper const&) = delete;
class ContentDialog : public wxDialog, public ContentStore
{
public:
- ContentDialog (wxWindow* parent)
+ explicit ContentDialog (wxWindow* parent)
: wxDialog (parent, wxID_ANY, _("Add content"), wxDefaultPosition, wxSize(800, 640))
, _content_view (new ContentView(this))
{