Add a somewhat dubious constructor.
[libdcp.git] / src / dcp_time.h
index 0bbf55106e942546ee8094ac8ad01ca698ac4606..eff69579736a8cd040301d25697d84e10374b23d 100644 (file)
@@ -53,9 +53,16 @@ public:
        int m; ///< minutes
        int s; ///< seconds
        int t; ///< `ticks', where 1 tick is 4 milliseconds
+
+       std::string to_string () const;
+       int64_t to_ticks () const;
+
+private:
+       void set (double);
 };
 
 extern bool operator== (Time const & a, Time const & b);
+extern bool operator!= (Time const & a, Time const & b);
 extern bool operator<= (Time const & a, Time const & b);
 extern bool operator< (Time const & a, Time const & b);
 extern bool operator> (Time const & a, Time const & b);