27 #include "ITimeValue.h"
28 #include "TimeValue.h"
30 namespace com {
namespace avpkit {
namespace core
33 ITimeValue::ITimeValue()
37 ITimeValue::~ITimeValue()
44 return TimeValue::make(aValue, aUnit);
50 return TimeValue::make(
dynamic_cast<TimeValue*
>(src));
76 return TimeValue::compare(a, b);
Time (duration) values with units.
static int32_t compare(ITimeValue *a, ITimeValue *b)
Convenience method that calls a.compareTo(b).
static ITimeValue * make(int64_t value, Unit unit)
Make a new time value.
virtual int32_t compareTo(ITimeValue *other)=0
Compare this timeValue to another.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...