Class: TMIDIType

Declaration: MIDI.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TMediaType

Inherited By:

None.

Purpose:

Defines the basic MIDI type for type negotiation between players and other components, sequences, and ports.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Override to provide types for other formats of MIDI data.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TMIDIType::TMIDIType

  1. TMIDIType ()
  2. TMIDIType (const TMIDIType &)
  3. TMIDIType (const TToken &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Protected constructor.

Calling Context:

  1. Called by the stream-in operators and directly.
  2. Call this function directly.
  3. Called by derived classes to initialize.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::operator=

TMIDIType & operator =(const TMIDIType &)

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:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::~TMIDIType

virtual ~ TMIDIType ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::GetMIDIType

static const TMIDIType & GetMIDIType ()

Interface Category:

API.

Purpose:

Defines a constant value for the basic MIDI type.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The TToken object containing the type.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws TInvalidVersionError if the versions don't match.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIType::GetDataType

TToken GetDataType () const

Interface Category:

API.

Purpose:

Returns a TToken that identifies the media type with a unique name.

Calling Context:

Call this function directly.

Parameters:

Return Value:

A TToken representing the type.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

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.