IMMTrackMinSecFrameTime

The IMMTrackMinSecFrameTime data type class represents the tracks-minutes-seconds-frames (TTMMSSFF) time format. This format is used primarily by compact disc audio devices.


IMMTrackMinSecFrameTime - Member Functions and Data by Group

Constructors & Destructor

You can construct, copy, and destruct objects of this class.


[view class]
~IMMTrackMinSecFrameTime
public:
virtual ~IMMTrackMinSecFrameTime()

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
IMMTrackMinSecFrameTime


Overload 1
public:
IMMTrackMinSecFrameTime( IMMAudioCDContents& contents, unsigned long value )

You can construct an IMMTrackMinSecFrameTime from the following:

contents
A table of contents for the compact disc that you want to create a time for.
value
A time value where:
  1. 1st byte is the frames
  2. 2nd byte is the seconds
  3. 3rd byte is the minutes
  4. 4th byte is the track

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Overload 2
public:
IMMTrackMinSecFrameTime( IMMAudioCDContents& contents, unsigned long track, unsigned long minutes, unsigned long seconds, unsigned long frames )

You can construct an IMMHourMinSecFrameTime from the following:

contents
A table of contents for the compact disc that you want to create a time for.
track
A track number.
minutes
The number of minutes.
seconds
The number of seconds.
frames
The number of frames.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Overload 3
public:
IMMTrackMinSecFrameTime( const IMMTrackMinSecFrameTime& time )

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
operator =
public:
IMMTrackMinSecFrameTime& operator =( const IMMTrackMinSecFrameTime& time )

Sets the time to be equal to the passed-in time.

Exception

IInvalidRequest The passed-in time is invalid.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Attributes

Use these members to parse the data into tracks, seconds, minutes, and frames.


[view class]
frames
public:
virtual unsigned long frames() const

Returns the frames component of the time.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
minutes
public:
virtual unsigned long minutes() const

Returns the minutes component of the time. This is in the range of 0 to 59.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
seconds
public:
virtual unsigned long seconds() const

Returns the seconds component of the time. This is in the range of 0 to 59.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
track
public:
virtual unsigned long track() const

Returns the track component of the time.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Conversion

Use these members to cast the time to an unsigned long.


[view class]
operator unsigned long
public:
virtual operator unsigned long() const

Returns the time as an unsigned long in the following format (FFSSMMTT):

  1. 1st byte is the frames
  2. 2nd byte is the seconds
  3. 3rd byte is the minutes
  4. 4th byte is the tracks
This value is based on the current table of contents.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Diagnostics

Use these members to return the time as a string.


[view class]
asString
public:
virtual IString asString() const

Returns the time value as a string formatted as TT MM:SS.FF.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Operators

Use these operators to perform mathematical operations on time objects.


[view class]
operator +
public:
IMMTrackMinSecFrameTime operator +(const IMMTime& time)

Returns the sum of the current set time and the passed-in time.

Exception

IInvalidRequest The passed-in time is invalid or this time object is invalid.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
operator +=
public:
IMMTrackMinSecFrameTime& operator +=(const IMMTime& time)

Adds the time to the current set time.

Exception

IInvalidRequest The passed-in time is invalid or this time object is invalid.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
operator -
public:
IMMTrackMinSecFrameTime operator -(const IMMTime& time)

Returns the result of the current set time minus the passed-in time.

Exception

IInvalidRequest The passed-in time is invalid or this time object is invalid.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
operator -=
public:
IMMTrackMinSecFrameTime& operator -=(const IMMTime& time)

Subtracts the time from the current set time.

Exception

IInvalidRequest The passed-in time is invalid or this time object is invalid.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


IMMTrackMinSecFrameTime - Inherited Member Functions and Data

Inherited Public Functions

IMMTime

Inherited Public Data

IMMTime

Inherited Protected Functions

IMMTime

Inherited Protected Data