This class converts between the Automation-compatible REFTIME type and the REFERENCE_TIME type used within and between filters.
Time parameters within the control interfaces are represented as double values, containing a fractional number of seconds. Interfaces supported between and within filters use a 64-bit LONGLONG type containing the time in 100-nanosecond units. Filters use this class to convert between the two formats. It is derived from CRefTime and thus is a LONGLONG, but it can be constructed from and assigned double values.
Member Functions
Name | Description |
COARefTime | Constructs a COARefTime object. |
Operators
Name | Description |
double | Returns the reference time as a double value. |
Operator = | Copy constructor for the COARefTime class. |
Operator == | Tests for equality between COARefTime objects. |
Operator != | Tests for inequality between COARefTime objects. |
Operator < | Tests if one COARefTime object is less than another COARefTime object. |
Operator > | Tests if one COARefTime object is greater than another COARefTime object. |
Operator <= | Tests if one COARefTime object is less than or equal to another COARefTime object. |
Operator >= | Tests if one COARefTime object is greater than or equal to another COARefTime object. |
Operator + | Adds two COARefTime objects. |
Operator – | Subtracts one COARefTime object from another COARefTime object. |
Operator += | Adds two COARefTime objects and makes this object equal to the result. |
Operator –= | Subtracts one COARefTime object from another COARefTime object and makes this object equal to the result. |
Operator * | Multiplies two COARefTime objects. |
Operator / | Divides one COARefTime object by another COARefTime object. |
Constructs a COARefTime object.
COARefTime(
CRefTime t
);
COARefTime(
REFERENCE_TIME t
);
COARefTime(
double d
);
No return value.
Retrieves the reference time as a double value, converted from 100-nanosecond units to seconds.
operator double();
Copy constructor for a COARefTime object.
COARefTime& operator=(
const double& rd
);
No return value.
Tests for equality between COARefTime objects.
BOOL operator==(
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is equal to this object and FALSE otherwise.
This object is on the left side of the operator.
Tests for inequality between COARefTime objects.
BOOL operator!=(
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is not equal to this object; otherwise, returns FALSE.
This object is on the left side of the operator.
Tests if one COARefTime object is less than another COARefTime object.
BOOL operator < (
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is less than this object; otherwise, returns FALSE.
This object is on the left side of the operator.
Tests if one COARefTime object is greater than another COARefTime object.
BOOL operator > (
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is greater than this object; otherwise, returns FALSE.
This object is on the left side of the operator.
Tests if one COARefTime object is greater than or equal to another COARefTime object.
BOOL operator >= (
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is greater than or equal to this object; otherwise, returns FALSE.
This object is on the left side of the operator.
Tests if one COARefTime object is less than or equal to another COARefTime object.
BOOL operator <= (
const COARefTime& rt
);
Returns TRUE if the COARefTime object tested is less than or equal to this object; otherwise, returns FALSE.
This object is on the left side of the operator.
Adds two COARefTime objects.
COARefTime operator+(
const COARefTime& rt
);
Returns the result of the addition.
Subtracts one COARefTime object from another COARefTime object.
COARefTime operator-(
const COARefTime& rt
);
Returns the result of the subtraction.
This object is the object subtracted from.
Adds two COARefTime objects and makes this object equal to the result.
COARefTime& operator+=(
const COARefTime& rt
);
Returns the result.
Subtracts one COARefTime object from another COARefTime object and makes this object equal to the result.
COARefTime& operator-=(
const COARefTime& rt
);
Returns the result.
This object is the object subtracted from.
Multiplies the COARefTime object by a value.
COARefTime operator*(
LONG l
);
Returns the result.
Divides one COARefTime object by a value.
COARefTime operator/(
LONG l
);
Returns the result.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.