More c++ tidying.
[dcpomatic.git] / src / lib / string_text_file_content.cc
index 8b740546e82004c47299b514650e5384f11fe197..2bf41611073025390db4f28ecc25d422cb68e396 100644 (file)
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
+using namespace dcpomatic;
 
 StringTextFileContent::StringTextFileContent (boost::filesystem::path path)
        : Content (path)
@@ -94,3 +95,17 @@ StringTextFileContent::full_length (shared_ptr<const Film> film) const
        FrameRateChange const frc (film, shared_from_this());
        return DCPTime (_length, frc);
 }
+
+DCPTime
+StringTextFileContent::approximate_length () const
+{
+       return DCPTime (_length, FrameRateChange());
+}
+
+string
+StringTextFileContent::identifier () const
+{
+       string s = Content::identifier ();
+       s += "_" + only_text()->identifier();
+       return s;
+}