#define LIBDCP_TIME_H
#include "types.h"
+#include <boost/optional.hpp>
#include <stdint.h>
#include <string>
#include <iostream>
Time () : h (0), m (0), s (0), e (0), tcr (1) {}
/** Construct a Time.
- * @param Frame index (starting from 0).
+ * @param frame Frame index (starting from 0).
* @param frames_per_second Frames per second.
* @param tcr Timecode rate.
*/
Time (double seconds, int tcr);
- Time (std::string time, int tcr);
+ Time (std::string time, boost::optional<int> tcr);
int h; ///< hours
int m; ///< minutes