#ifndef LIBDCP_TIME_H
#define LIBDCP_TIME_H
-namespace libdcp {
+#include <string>
+#include <iostream>
+#include <stdint.h>
+
+namespace dcp {
/** @class Time
* @brief A representation of time within a DCP.
public:
Time () : h (0), m (0), s (0), t (0) {}
+ Time (int64_t ticks);
+
/** Construct a Time from a frame index (starting from 0)
* and a frames per second count.
*/
std::string to_string () const;
int64_t to_ticks () const;
+
+private:
+ void set (double);
};
extern bool operator== (Time const & a, Time const & b);