X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_text_track.h;h=4b5ed4512e898b3b51aa934edb2615f5835b5971;hb=dba7e1137282b52a1bd6ad1d56fe6371a8c97e30;hp=e6a146b3b1b1f8f919f7a0e7aa5d69e0565e654c;hpb=2bec3708fc744c18128c5bdb4c2a332f5c8eb283;p=dcpomatic.git diff --git a/src/lib/dcp_text_track.h b/src/lib/dcp_text_track.h index e6a146b3b..4b5ed4512 100644 --- a/src/lib/dcp_text_track.h +++ b/src/lib/dcp_text_track.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,24 +18,28 @@ */ + #ifndef DCPOMATIC_DCP_TEXT_TRACK_H #define DCPOMATIC_DCP_TEXT_TRACK_H -#include "warnings.h" + +#include +#include #include -DCPOMATIC_DISABLE_WARNINGS +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS + class DCPTextTrack { public: DCPTextTrack () {} DCPTextTrack (cxml::ConstNodePtr node); - DCPTextTrack (std::string name_, std::string language_); + DCPTextTrack (std::string name_, boost::optional language_); std::string name; - std::string language; + boost::optional language; std::string summary () const; void as_xml (xmlpp::Element* parent) const; @@ -45,4 +49,5 @@ bool operator== (DCPTextTrack const & a, DCPTextTrack const & b); bool operator!= (DCPTextTrack const & a, DCPTextTrack const & b); bool operator< (DCPTextTrack const & a, DCPTextTrack const & b); + #endif