Merge master.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 109dc9b7fe1c34b9850409a2bb4787298a58d492..2a871889a529be2ec7e7f6bcc7c0c15c2f2cf5c8 100644 (file)
@@ -146,6 +146,23 @@ public:
 
 std::ostream& operator<< (std::ostream& s, ContentTime t);
 
+class ContentTimePeriod
+{
+public:
+       ContentTimePeriod () {}
+       ContentTimePeriod (ContentTime f, ContentTime t)
+               : from (f)
+               , to (t)
+       {}
+
+       ContentTime from;
+       ContentTime to;
+
+       ContentTimePeriod operator+ (ContentTime const & o) const {
+               return ContentTimePeriod (from + o, to + o);
+       }
+};
+
 class DCPTime : public Time
 {
 public: