Class: TSMPTETimeCode

Declaration: SMPTETimeCode.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

TSMPTE24fps TSMPTE25fps TSMPTE30fps TSMPTE30fpsDrop

Purpose:

An abstract base class for SMPTE time classes with specific rates. The SMPTE format for time is hh:mm:ss:ff, where 0 <= hh <= 23 0 <= mm <= 59 0 <= ss <= 59 0 <= ff <= 29 (depending on the frame rate). TSMPTETime code extends this format by: Allowing hh to be >23. Providing fractional frames.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive to provide specific frame rate representations.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TSMPTETimeCode::GetTimeCode

virtual void GetTimeCode (Hours &, Minutes &, Seconds &, Frames &) const

Interface Category:

API.

Purpose:

Gets the time code in hours, minutes, seconds, and frames.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSMPTETimeCode::TSMPTETimeCode

  1. TSMPTETimeCode ()
  2. TSMPTETimeCode (const TTime &)
  3. TSMPTETimeCode (const TSMPTETimeCode &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor that takes a TTime object.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and to create an undefined object.
  2. Call this function directly.
  3. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSMPTETimeCode::operator=

TSMPTETimeCode & operator =(const TSMPTETimeCode &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSMPTETimeCode::~TSMPTETimeCode

virtual ~ TSMPTETimeCode ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSMPTETimeCode::ConvertToTimeCode

virtual void ConvertToTimeCode (Hours &, Minutes &, Seconds &, Frames &, double framesPerSecond) const

Interface Category:

API.

Purpose:

Given a rate, convert hours, minutes, seconds, and frames to an internal value.

Calling Context:

Called by derived classes when constructing.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.