diff --git a/src/lib/lumitime.cpp b/src/lib/lumitime.cpp index 9590b6c3a..d9e849a49 100644 --- a/src/lib/lumitime.cpp +++ b/src/lib/lumitime.cpp @@ -1,5 +1,5 @@ /* - Time - unified representation of a time point, including conversion functions + Time - convenience wrapper for working with gavl_time in C++ Copyright (C) Lumiera.org 2008, Hermann Vosseler @@ -28,10 +28,9 @@ namespace lumiera { - // TODO: dummy values; should be adjusted when switching to the real time implementation provided by the backend - const Time Time::MAX = +std::numeric_limits::max(); - const Time Time::MIN = -std::numeric_limits::max(); + const Time Time::MAX = +std::numeric_limits::max(); + const Time Time::MIN = -std::numeric_limits::max(); } // namespace lumiera diff --git a/src/lib/lumitime.hpp b/src/lib/lumitime.hpp index 33b5bb4c3..5bc60c044 100644 --- a/src/lib/lumitime.hpp +++ b/src/lib/lumitime.hpp @@ -1,5 +1,5 @@ /* - LUMITIME.hpp - unified representation of a time point, including conversion functions + LUMITIME.hpp - convenience wrapper for working with gavl_time in C++ Copyright (C) Lumiera.org 2008, Hermann Vosseler @@ -26,35 +26,51 @@ #include +extern "C" { +#include +} -namespace lumiera - { +namespace lumiera { /** - * denotes a temporal position (time point), based on timeline start. + * C++ convenience wrapper representing a time value, which could denote + * a temporal position (time point) relative to an (implicit) timeline zero + * point, or it could represent a time interval. * - * @todo currently (9/07) this is a dummy implementation to find out - * what interface the Proc layer needs. Cehteh has already written - * elaborate timehandling functions in the backend and the goal - * is for class Time to be just a thin wrapper! + * @note this is currently (10/08) an experimental implementation to ease + * the time handling within C++ code. It is advisable not to use it + * on external interfaces (use gavl_time_t there please). */ - class Time : boost::totally_ordered